fixed not support Nuxt.js

This commit is contained in:
梁灏 2017-11-16 11:02:01 +08:00
parent 1cbdb617bf
commit 54f510c528
2 changed files with 17 additions and 4 deletions

View file

@ -22,6 +22,14 @@ module.exports = {
libraryTarget: 'umd',
umdNamedDefine: true
},
externals: {
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue'
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': {