javascript - Grunt concat for each module then minify -


trying grunt. have file structure this:

/app --app.js --/module1 ----module1.js ----module1model.js --/module2 ----module2.js ----module2model.js 

how can concatenate & minify each module 1 file looks like:

/app --app.min.js --module1.min.js --module2.min.js 

we want scalable when add module3, 4 it'll still work. thank help!

you can use uglify solution , "dist" , "src" can changed according use:

uglify:{         liveproject:{             files:{                 'dist/js/main.min.js' : ['src/js/*.js'],                 'dist/js/m1.min.js' : ['src/js/easing.js','src/js/modernizer.js'],             }             }      }, 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -