mirror of https://github.com/ElemeFE/element
Merge pull request #14220 from island205/dev
chore: fix export issue generate by webpack upgradingpull/14227/head
commit
4d9dbade19
|
@ -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 = {
|
||||||
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 = {
|
||||||
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
|
||||||
},
|
},
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4"}
|
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.5.0":"2.4"}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "element-ui",
|
"name": "element-ui",
|
||||||
"version": "2.4.11",
|
"version": "2.5.0",
|
||||||
"description": "A Component Library for Vue.js.",
|
"description": "A Component Library for Vue.js.",
|
||||||
"main": "lib/element-ui.common.js",
|
"main": "lib/element-ui.common.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "element-theme-chalk",
|
"name": "element-theme-chalk",
|
||||||
"version": "2.4.11",
|
"version": "2.5.0",
|
||||||
"description": "Element component chalk theme.",
|
"description": "Element component chalk theme.",
|
||||||
"main": "lib/index.css",
|
"main": "lib/index.css",
|
||||||
"style": "lib/index.css",
|
"style": "lib/index.css",
|
||||||
|
|
|
@ -172,7 +172,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
version: '2.4.11',
|
version: '2.5.0',
|
||||||
locale: locale.use,
|
locale: locale.use,
|
||||||
i18n: locale.i18n,
|
i18n: locale.i18n,
|
||||||
install,
|
install,
|
||||||
|
|
Loading…
Reference in New Issue