Open doublejosh opened 9 years ago
@doublejosh sorry for replying late. I will take care of it soon :)
:smiley:
@doublejosh
What's your configuration like? I need more detail to look into your issue :)
I try inlining a script file, and set uglify:true
, which compressed the script file, including removing the comments as expected.
Here is the configuration I use:
module.exports = function(grunt) {
grunt.initConfig({
inline: {
dev: {
options: {
uglify: true
},
src: 'temp/error.html',
dest: 'temp/errors.html'
}
}
});
grunt.loadNpmTasks('grunt-inline');
};
Pretty simple, options set in the task, in coffeescript...
grunt.initConfig
...
inline:
options:
cssmin: true
uglify: true
src: [
'<%= config.dist %>/asset/*',
'<%= config.dist %>/trial/*'
]
...
grunt.registerTask 'default', [
'clean'
'jshint'
'copy'
'concat'
'compress'
'inline'
'cacheBust'
]
Setting
uglify: true
does not seem to remove comments when inlined.