- To begin, open Bash or a similar program and navigate to chapter9/start/grunt. Add the plugin by running the following command:
npm install grunt-strip-css-comments --save-dev
- Open your Gruntfile.js and add another Grunt task by inserting the following code on line 56:
stripCssComments: { dist: { files: { '../app/www/css/main.css': '../app/www/css/main.css' } } },
- On line 74 of your Gruntfile.js, add the following line of code:
grunt.loadNpmTasks('grunt-strip-css-comments');
- Navigate your console to chapter9/start/grunt and run the following command:
grunt stripCssComments
- Preview the file size and contents of main.scss.