How to create a new compilerconfig.json compiler (extension)?

I have a project with a large number of files, I use the extension for visual studio 2015 in a Web compiler (developer Mads Kristensen )

My way to create compilerconfig.json is to compile a single file and then manually edit the file to work with all the other less files in the project. I'm sure this is wrong ...

I don’t understand how can I create a new compilerconfig.json file containing less and less files in an existing project?

because in this situation, when I added a new fewer files, the only way to add a file is to go to compilerconfig.json and add it manually.

We don’t have the ability to create a new compilerconfig.json with all smaller files automatically?

Less web compiler

+6
source share
1 answer

All you have to do after adding a new .less file to the project is right-clicking on the new inactivity file, and “Compile File” should be the only option by selecting this option, which will then be added to compilerconfig. json file. This will not lead to adding all files without changes to the project in the configuration with one click, but it will automatically add them with a quick click on each file, and you will not have to add them manually.

BEFORE:

[ { "outputFile": "less/site.css", "inputFile": "less/site.less" } ] 

AFTER:

 [ { "outputFile": "less/site.css", "inputFile": "less/site.less" }, { "outputFile": "less/theme.css", "inputFile": "less/theme.less" } ] 

You can also recompile all files from the Task Explorer window. There you should see compilerconfig.json, below you will see “LESS”, you can “Run” to compile everything or select one file. You can also compile the assembly.

An alternative method would be to use the gulp file. You can configure the task to get fewer files in your project without thinking about it after setting it up.

+2
source

All Articles