diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 93406dd..a738996 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -17,6 +17,10 @@ let webpackConfig = { entry: { app: ["babel-polyfill", "./src/main.js"] }, + //添加 + externals: { + "BMap": "BMap" + }, output: { path: config.build.assetsRoot, filename: '[name].js', @@ -72,9 +76,5 @@ let webpackConfig = { module.exports = vuxLoader.merge(webpackConfig, { - plugins: ['vux-ui', 'progress-bar', 'duplicate-style'], - //添加 - externals: { - "BMap": "BMap" - }, + plugins: ['vux-ui', 'progress-bar', 'duplicate-style'] }) \ No newline at end of file