修复IE11下无法正常使用的问题
This commit is contained in:
@@ -23,7 +23,7 @@ const createLintingRule = () => ({
|
||||
module.exports = {
|
||||
context: path.resolve(__dirname, '../'),
|
||||
entry: {
|
||||
app: './src/main.js'
|
||||
app: ['babel-polyfill', './src/main.js']
|
||||
},
|
||||
output: {
|
||||
path: config.build.assetsRoot,
|
||||
|
||||
@@ -59,9 +59,9 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
||||
favicon: resolve('favicon.ico'),
|
||||
title: 'vue-element-admin',
|
||||
templateParameters: {
|
||||
BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory,
|
||||
},
|
||||
}),
|
||||
BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
favicon: resolve('favicon.ico'),
|
||||
title: 'vue-element-admin',
|
||||
templateParameters: {
|
||||
BASE_URL: config.build.assetsPublicPath + config.build.assetsSubDirectory,
|
||||
BASE_URL: config.build.assetsPublicPath + config.build.assetsSubDirectory
|
||||
},
|
||||
minify: {
|
||||
removeComments: true,
|
||||
@@ -71,7 +71,7 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
// matter anyway
|
||||
}),
|
||||
new ScriptExtHtmlWebpackPlugin({
|
||||
//`runtime` must same as runtimeChunk name. default is `runtime`
|
||||
// `runtime` must same as runtimeChunk name. default is `runtime`
|
||||
inline: /runtime\..*\.js$/
|
||||
}),
|
||||
// keep chunk.id stable when chunk has no name
|
||||
|
||||
Reference in New Issue
Block a user