1+ const sass = require ( 'sass' ) ;
2+
13module . exports = function ( grunt ) {
24
35// Time how long tasks take. Can help when optimizing build times
@@ -20,22 +22,29 @@ module.exports = function (grunt) {
2022
2123// Sass all the style things
2224sass :{
23- default :{
24- files :{
25- 'dist/css/<%= pkg.name %>.css' :'src/stylesheets/<%= pkg.name %>.scss' ,
26- 'dist/css/<%= pkg.name %>-docs.css' :'src/stylesheets/<%= pkg.name %>-docs.scss'
27- } ,
25+ options :{
26+ implementation :sass ,
27+ sourceMap :true ,
28+ outputStyle :'expanded'
29+ } ,
30+ dist :{
2831options :{
32+ implementation :sass ,
2933sourceMap :true ,
30- outputStyle :'expanded '
34+ outputStyle :'compressed '
3135} ,
36+ files :{
37+ 'dist/css/<%= pkg.name %>.css' :'src/stylesheets/<%= pkg.name %>.scss' ,
38+ 'dist/css/<%= pkg.name %>-docs.css' :'src/stylesheets/<%= pkg.name %>-docs.scss'
39+ }
3240} ,
3341minify :{
3442files :{
3543'dist/css/<%= pkg.name %>.min.css' :'src/stylesheets/<%= pkg.name %>.scss' ,
3644'dist/css/<%= pkg.name %>-docs.min.css' :'src/stylesheets/<%= pkg.name %>-docs.scss'
3745} ,
3846options :{
47+ implementation :sass ,
3948sourceMap :true ,
4049outputStyle :'compressed'
4150} ,
@@ -57,12 +66,12 @@ module.exports = function (grunt) {
5766
5867// Stylesheets, fonts, img, and js **FROM** /node_modules/uswds/
5968
60- uswds_stylesheets :{
69+ /* uswds_stylesheets: {
6170 expand: true,
6271 src: '**',
6372 cwd: 'node_modules/uswds/src/stylesheets',
6473 dest: 'src/stylesheets/lib/uswds'
65- } ,
74+ }, */
6675
6776uswds_fonts :{
6877expand :true ,
@@ -316,7 +325,7 @@ module.exports = function (grunt) {
316325grunt . registerTask ( 'build' , [
317326'clean:dist' ,
318327'copy:datepicker_bk' ,
319- 'copy:uswds_stylesheets' ,
328+ // 'copy:uswds_stylesheets', // this will add decrecated SASS if copied
320329'copy:uswds_fonts' ,
321330'copy:uswds_img' ,
322331'copy:uswds_js' ,