From b381ad3e6b71bc98271f64f0a57a68c77b6bd459 Mon Sep 17 00:00:00 2001 From: dolymood Date: Sun, 30 Sep 2018 16:50:17 +0800 Subject: [PATCH] chore(build): support cube.xxx with umd in modules target --- build/webpack.modules.conf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack.modules.conf.js b/build/webpack.modules.conf.js index 836fcf34f..a4d7c13d7 100644 --- a/build/webpack.modules.conf.js +++ b/build/webpack.modules.conf.js @@ -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