@echo off
:: 当前目录 src/test
set currDir=src/test/
set sourceMapFileName=test.js.map
set inputList=%inputList% --js test1.js
set inputList=%inputList% --js test2.js
set inputList=%inputList% --js test3.js
set outputFileName= .... est.min.js
java -jar ..compiler.jar %inputList% ^
--js_output_file %outputFileName% ^
--create_source_map %sourceMapFileName% ^
--source_map_format=V3
echo 文件已经输出到%outputFileName%,按任意键退出
:: 最后到 test.min.js 尾部添加如下说明
:: //@ sourceMappingURL=src/test/test.js.map
echo.>>%outputFileName%
echo //@ sourceMappingURL=%currDir%%sourceMapFileName%>>%outputFileName%
@pause>nul