Skip to content

Commit b381ad3

Browse files
committed
chore(build): support cube.xxx with umd in modules target
1 parent 2b6ff24 commit b381ad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/webpack.modules.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var webpackConfig = merge(baseWebpackConfig, {
3333
output: {
3434
path: config.build.assetsRoot,
3535
filename: utils.assetsPath('[name]/index.js'),
36-
library: 'cube',
37-
libraryTarget: 'commonjs2'
36+
library: ['cube', '[name]'],
37+
libraryTarget: 'umd'
3838
},
3939
plugins: [
4040
// extract css into its own file

0 commit comments

Comments
 (0)