Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Web Essentials be configured to NOT add *.css files to Visual Studio project?

We are using Visual Studio + Web Essentials to compile LESS files to CSS. Whenever we change a LESS file Web Essentials insists on creating a *.css, *.min.css and a *.css.map file AND add them to the Visual Studio project file.

We don't want to check-in these files to Source Control the same as we don't check-in dll files.

So my question is: Can we configure Web Essentials to NOT add *.css & *.css.map to VS project?

like image 527
Thomas Jespersen Avatar asked Jul 23 '14 13:07

Thomas Jespersen


2 Answers

You can now, just add "includeInProject": false to the compilerconfig.json file

{
    "outputFile": "Assets/css/themes/Default.css",
    "inputFile": "Assets/css/themes/Default.scss",
    "includeInProject": false
  },
like image 147
user973671 Avatar answered Oct 20 '22 04:10

user973671


No. Web Essentials will add the generated CSS files to the VS Project.

You can use dotless to generate CSS files on build without adding them to the VS project.

like image 4
Jerry Joseph Avatar answered Oct 20 '22 04:10

Jerry Joseph