Skip to content

Commit

Permalink
chore(build): support cube.xxx with umd in modules target
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Sep 30, 2018
1 parent 2b6ff24 commit b381ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/webpack.modules.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ var webpackConfig = merge(baseWebpackConfig, {
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('[name]/index.js'),
library: 'cube',
libraryTarget: 'commonjs2'
library: ['cube', '[name]'],
libraryTarget: 'umd'
},
plugins: [
// extract css into its own file
Expand Down

0 comments on commit b381ad3

Please sign in to comment.