I am new to MEAN & Grunt. I used "ng build --prod --aot" for production of my MEAN stack app and now i have these files in my
dist folder
I am trying to minify these files as these can still be reduced and 30kb size can be saved .
I used grunt with these src and dest :
uglify: {
files: {
src: 'dist/*.js',
dest: 'dist/',
expand: true,
flatten: true,
ext: '.js'
}
}
On "grunt uglify" command I get the files
How can I get the same file name that angular build provided me ? And please provide options that can maximize reduction in size(optional) Thanks in advance !
adding extDot worked for me ,
files: {
src: 'dist/*.js',
dest: 'dist/',
expand: true,
flatten: true,
ext: '.js',
extDot: 'last'
}