改变打包出来的amd模块,增加amd模块的名字 (#28)

* add amd name
This commit is contained in:
Yao
2017-05-11 15:58:12 +08:00
committed by GitHub
parent 329df09e22
commit 2feeb67b3f
5 changed files with 14 additions and 4 deletions

View File

@@ -7,7 +7,8 @@ module.exports = merge(devConfig, {
output: {
path: path.join(__dirname, '../docs/dist'),
publicPath: '/zanui/vue',
filename: '[name].[hash:8].js'
filename: '[name].[hash:8].js',
umdNamedDefine: true
},
devtool: false,
plugins: [