Commit 6b4413f8 authored by Zhi's avatar Zhi

chore: fix export issue generate by webpack upgrading

parent d57d79bd
...@@ -5,7 +5,7 @@ cd temp_web ...@@ -5,7 +5,7 @@ cd temp_web
git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element
# build sub folder # build sub folder
SUB_FOLDER='2.4' SUB_FOLDER='2.5'
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
......
...@@ -14,6 +14,8 @@ module.exports = { ...@@ -14,6 +14,8 @@ module.exports = {
publicPath: '/dist/', publicPath: '/dist/',
filename: 'element-ui.common.js', filename: 'element-ui.common.js',
chunkFilename: '[id].js', chunkFilename: '[id].js',
libraryExport: 'default',
library: 'ELEMENT',
libraryTarget: 'commonjs2' libraryTarget: 'commonjs2'
}, },
resolve: { resolve: {
......
...@@ -15,6 +15,7 @@ module.exports = { ...@@ -15,6 +15,7 @@ module.exports = {
filename: 'index.js', filename: 'index.js',
chunkFilename: '[id].js', chunkFilename: '[id].js',
libraryTarget: 'umd', libraryTarget: 'umd',
libraryExport: 'default',
library: 'ELEMENT', library: 'ELEMENT',
umdNamedDefine: true umdNamedDefine: true
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment