Extending the default gulpfile in VS2015

Add sass and autoprefixer to gulp in visual studio 2015

You are looking at revision 1 of this page, which may be out of date. View the latest version.  

In Visual studio 2015 (Update 2) a new ASP.NET Core Web Application contains a gulpfile that adds css and js minification. Here is how to add scss and autoprefixing support to that gulpfile.

After adding a new project rename site.css to site.scss

alt text

Next install the the required npm packages:

npm install autoprefixer npm install gulp-sass You need to ensure you run these commands from the project folder (not just anywhere) eg for me that means

 D:\aaa_development\spikes\GulpSpike\src\GulpSpike
Posted by: Wallace Turner
Last revised: 21 May, 2016 05:17 AM History
You are looking at revision 1 of this page, which may be out of date. View the latest version.

Comments

No comments yet. Be the first!

No new comments are allowed on this post.