@@ -415,8 +415,7 @@ module.exports = function(grunt) {
415
415
416
416
grunt . initConfig ( config ) ;
417
417
418
- // load the tasks
419
- // grunt.loadNpmTasks('grunt-gitinfo');
418
+ // load tasks
420
419
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
421
420
grunt . loadNpmTasks ( 'grunt-sass' ) ;
422
421
grunt . loadNpmTasks ( 'grunt-contrib-compress' ) ;
@@ -432,9 +431,9 @@ module.exports = function(grunt) {
432
431
grunt . loadNpmTasks ( 'grunt-contrib-connect' ) ;
433
432
grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
434
433
435
- // define the tasks
434
+ // define tasks
436
435
grunt . registerTask ( 'release' , [
437
- 'replace:version' ,
436
+ 'replace:version' , // before webpack
438
437
'sass:expanded' ,
439
438
'sass:min' ,
440
439
'postcss:expanded' ,
@@ -446,10 +445,11 @@ module.exports = function(grunt) {
446
445
'compress:src' ,
447
446
'compress:starter_template' ,
448
447
'compress:parallax_template' ,
448
+ 'replace:version' , // again because of cdn
449
449
'replace:package_json' ,
450
450
'rename:rename_src' ,
451
451
'rename:rename_compiled' ,
452
- ] ) ;
452
+ ] ) ;
453
453
grunt . registerTask ( 'pug_compile' , [ 'pug' ] ) ;
454
454
grunt . registerTask ( 'js_compile' , [ 'webpack:dev' , 'copy:docs_js' ] ) ;
455
455
grunt . registerTask ( 'sass_compile' , [ 'sass:gh' , 'sass:bin' , 'postcss:gh' , 'postcss:bin' ] ) ;
0 commit comments