|
@@ -67,18 +67,6 @@ module.exports = {
|
|
|
lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
|
|
|
runtimeCompiler: true, // 是否使用包含运行时编译器的 Vue 构建版本
|
|
|
|
|
|
- configureWebpack: {
|
|
|
- plugins: [
|
|
|
- new CopyWebpackPlugin([{ from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' }]),
|
|
|
- new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'Assets'), to: 'Assets' }]),
|
|
|
- new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' }]),
|
|
|
- new CopyWebpackPlugin([{ from: path.join(cesiumSource, 'ThirdParty/Workers'), to: 'ThirdParty/Workers' }]),
|
|
|
- new webpack.DefinePlugin({
|
|
|
- CESIUM_BASE_URL: JSON.stringify('./')
|
|
|
- }),
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
chainWebpack: (config) => {
|
|
|
config.resolve.symlinks(true); // 修复热更新失效
|
|
|
config.plugin('html')
|