https://github.com/cmdcolin/source_map_tests
Testing JS minification+source maps
https://github.com/cmdcolin/source_map_tests
Last synced: 4 months ago
JSON representation
Testing JS minification+source maps
- Host: GitHub
- URL: https://github.com/cmdcolin/source_map_tests
- Owner: cmdcolin
- Created: 2017-03-20T21:21:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T22:09:44.000Z (over 9 years ago)
- Last Synced: 2025-01-15T08:44:05.291Z (over 1 year ago)
- Language: HTML
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# source_map_tests
## UglifyJS
Install
npm install -g uglify-js
Test using uglify JS
uglifyjs script.js -o uglify.min.js --source-map uglify.js.map -c -m
Then open index.html in a web browser
## Google Closure Compiler
Install
npm install -g google-closure-compiler
Test using google closure compiler
java -jar /usr/local/lib/node_modules/google-closure-compiler/compiler.jar script.js --create_source_map=closure.js.map --js_output_file=closure.min.js