grunt-contrib-uglify
grunt-contrib-uglify copied to clipboard
Minify files with UglifyJS.
I try to minify [sanitize.css here](https://github.com/csstools/sanitize.css/blob/master/sanitize.css) and getting this error message. CSS: ``` *, ::before, ::after { box-sizing: border-box; } ``` The line that contain *, is cause the error....
if a source file does not exist i get no warning. I have 3 sources (2 do not exists) and i get the output: >> 1 sourcemap created. >> 1...
I miss some error or notification during the process if a js file from the sources was not found.
Currently the `sources` field in sourcemaps is always relative to the sources. In my case it looks somewhat ugly: ``` ../../../../src/main/webapp/home/scripts/home.js ``` I’m including the sources with `sourcesContent` and not...
Example: ``` coffee module.exports = (grunt) -> grunt.loadNpmTasks("grunt-contrib-uglify") grunt.loadNpmTasks("grunt-contrib-coffee") grunt.initConfig pkg: grunt.file.readJSON('package.json') uglify: options: mangle: except:['jQuery'] dist: options: sourceMap:true sourceMapIncludeSources:true sourceMapIn: (file) -> "scripts/maps/#{file}.map" files: [ expand: true flatten: true...
When I'm running uglifier, the code in the destination file is not arranged like in the source file. **Short Example** Source ``` function one() {} function two() {} function three()...
Hi all, Currently our project has multiple js files in multiple folders, so we are using dynamic file selection in our uglify process and sourcemaps creation for debugging. Our uglify...
My gruntfile includes the option to display gzip reports for all of my uglified JS files, but they are no longer showing up. It looks like the commit below changed...
``` js grunt.initConfig({ uglify: { build: { files: [{ expand: true, cwd: 'src/', src: ['*.js'], dest: 'src/', extDot: 'last', ext:'.min.js' }] } } }); ``` I would like to compress...
I understand that this task supports UglifyJS's `wrap` and `define` features for wrapping the entire code output in a closure to prevent global leaks and collisions. I have a growing...