echarts-optimizer
Advanced tools
Comparing version 0.2.2 to 0.2.4
12
index.js
@@ -93,3 +93,3 @@ | ||
writeCompiledCode( | ||
'echarts.source.js', main.name, main.expectDependencies, | ||
'echarts.js', main.name, main.expectDependencies, | ||
eslCode | ||
@@ -99,3 +99,3 @@ ); | ||
writeCompiledCode( | ||
mod.name.slice(mod.name.indexOf('/') + 1) + '.source.js', | ||
mod.name.slice(mod.name.indexOf('/') + 1) + '.js', | ||
mod.name, | ||
@@ -127,6 +127,6 @@ mod.expectDependencies | ||
writeFile( | ||
'echarts-all.source.js', code | ||
'source/echarts-all.js', code | ||
); | ||
writeFile( | ||
'echarts-all.js', | ||
'dist/echarts-all.js', | ||
jsCompress(code) | ||
@@ -163,4 +163,4 @@ ); | ||
writeFile(file, result); | ||
writeFile(file.replace('.source', ''), jsCompress(result)); | ||
writeFile('source/' + file, result); | ||
writeFile('dist/' + file, jsCompress(result)); | ||
} | ||
@@ -167,0 +167,0 @@ |
{ | ||
"name": "echarts-optimizer", | ||
"version": "0.2.2", | ||
"version": "0.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -17,5 +17,11 @@ ## ECharts 构建工具 | ||
也可以通过如下方式指定生成目录: | ||
添加 `--debug` 参数时,生成目录下会包含依赖分析结果。 | ||
``` | ||
$ echarts-optimize --debug | ||
``` | ||
通过如下方式可以指定生成目录: | ||
``` | ||
$ echarts-optimize echarts-dist | ||
@@ -22,0 +28,0 @@ ``` |
95008
108