![]() Npm init creates an empty package.json for the project, which will later tell other machines the packages needed for this project to build. Open command prompt (note: PATH environment variable must contain npm directory for this to work).Ĭhange directory into the folder where the project is located. src folder structureĪdd the following content to the site.scss file. So we should have something that looks like this. For simplicity of this example, we are going to have one file (site.scss). Once it is has initialised, create a new folder in the root of the project called Scss. To get started, lets create the default MVC application. See the compiling SCSS at build time with visual studio GitHub repo for the full code base. That said this approach does rely on Node.JS to compile the SCSS but since Node.JS has wide spread adoption, the chances are current (or potential) team members will have it already. I believe the development environment should have as little dependencies as possible (including extensions). ![]() Firstly, there are extensions that can compile scss at build time… but every extension installed is another barrier to new team members coming onboard and getting up to speed on a project.
0 Comments
Leave a Reply. |