| glsl(), | glsl(), | ||||
| sassPlugin(), | sassPlugin(), | ||||
| ], | ], | ||||
| external: ['@dvgis/dc-common', 'turf', 'echarts'], | |||||
| external: ['@dvgis/dc-common'], | |||||
| } | } | ||||
| function getTime() { | function getTime() { | ||||
| ...buildConfig.plugins, | ...buildConfig.plugins, | ||||
| GlobalsPlugin({ | GlobalsPlugin({ | ||||
| '@dvgis/dc-common': 'DC_Common', | '@dvgis/dc-common': 'DC_Common', | ||||
| charts: 'charts', | |||||
| }), | }), | ||||
| ], | ], | ||||
| minify: options.minify, | minify: options.minify, | ||||
| } | } | ||||
| // combine for node | // combine for node | ||||
| if (options.node && options.obfuscate) { | |||||
| if (options.node) { | |||||
| await gulp | await gulp | ||||
| .src('dist/index.js') | .src('dist/index.js') | ||||
| .pipe(gulp.dest('dist')) | .pipe(gulp.dest('dist')) |