标签:base str cli serve .com vue load imp ie9
build/webpack.base.conf.js
[vuex] vuex requires a Promise polyfill in this browser.
// 由于一直报错, app为 string
entry: () =>{
return { app: [‘babel-polyfill‘, ‘./src/main.js‘] }
}
/* 还需要在main.js中引入 */
import ‘babel-polyfill‘
import ‘babel-polyfill‘
// ----
entry: {
‘babel-polyfill‘: ‘babel-polyfill‘,
app: ‘./src/main.js‘
},
// ------------
entry: {
app: [
‘babel-polyfill‘,
‘./src/main.js‘
]
},
js转义 需要转义的第三方库
{
test: /\.js$/,
loader: ‘babel-loader‘,
include: [resolve(‘src‘), resolve(‘test‘), resolve(‘node_modules/webpack-dev-server/client‘), resolve(‘node_modules/element-ui-verify/dist‘)]
},
标签:base str cli serve .com vue load imp ie9
原文地址:https://www.cnblogs.com/sinosaurus/p/10277244.html