Browse Source

Make Closure Compiler output source map

master
LMLB 3 years ago
parent
commit
3e849550f9
3 changed files with 6 additions and 3 deletions
  1. +2
    -0
      compile-output-wrapper.js
  2. +1
    -1
      compile.bat
  3. +3
    -2
      compile.sh

+ 2
- 0
compile-output-wrapper.js View File

@ -0,0 +1,2 @@
(function(){%output%})();
//# sourceMappingURL=js-compiled.js.map

+ 1
- 1
compile.bat View File

@ -2,5 +2,5 @@
:: Removed --formatting=PRETTY_PRINT
java -client -jar closure-compiler.jar --js js-lib\*.js --js js-lib\*\*.js --warning_level=VERBOSE --language_in=ECMASCRIPT6 --compilation_level=ADVANCED_OPTIMIZATIONS --output_wrapper "(function() {%%output%%})();" > js-compiled.js
java -client -jar closure-compiler.jar --create_source_map js-compiled.js.map --js_output_file js-compiled.js --js js-lib\*.js --js js-lib\*\*.js --warning_level=VERBOSE --language_in=ECMASCRIPT6 --compilation_level=ADVANCED_OPTIMIZATIONS --output_wrapper_file compile-output-wrapper.js
pause

+ 3
- 2
compile.sh View File

@ -3,9 +3,10 @@
# removed --formatting=PRETTY_PRINT
java -client -jar closure-compiler.jar \
--create_source_map js-compiled.js.map \
--js_output_file js-compiled.js \
--js js-lib/**.js \
--js js-lib/**/*.js \
--warning_level=VERBOSE --language_in=ECMASCRIPT6 --compilation_level=ADVANCED_OPTIMIZATIONS \
--output_wrapper "(function() {%output%})();" \
> js-compiled.js
--output_wrapper_file compile-output-wrapper.js

Loading…
Cancel
Save