FileWatcher Generate SourceMap with YUI Compressor (CSS) and Uglify or YUI Compressor (JS)
I'm using 3 File Watchers.
1 - SCSS to translate file.scss to file.css and file.css.map (is not possible to generate compressed css file and him map with SCSS FileWatcher?)
2 - YUI Compressor to compress file.css to file.min.css BUT, I don't know how to generate file.min.css.map too! Anyone knows the argument for this?
3 - Uglify to compress my file.js to file.min.js but I had the same problem, I don't know how to generate file.min.js.map! (I can use YUI Compressor to JS too, if its help!)
Please sign in to leave a comment.
1. SASS compiler (scss.bat) supports
--style compressedoption, which produces compact/compressed output -- sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style .So you can try modifying your SCSS file watcher Arguments as follows:
--no-cache --style compressed --update $FileName$:$FileNameWithoutExtension$.min.cssMake sure to modify Output paths to refresh accordingly:
$FileNameWithoutExtension$.min.css:$FileNameWithoutExtension$.min.css.map2. UglifyJS (https://www.npmjs.com/package/uglify-js ) supports --source-map option - you can try adding --source-map to args