Commit c4c30082 authored by rockyl's avatar rockyl

增加自动识别paths配置

parent ea6ed3bb
......@@ -84,11 +84,19 @@ gulp.task('compileTs', async function () {
reserved: [umdName, 'startup', 'userAgent'],
}
}));
plugins.push(
replace({
'DEBUG': JSON.stringify(false),
'RELEASE': JSON.stringify(true),
})
)
} else {
plugins.push(
replace({
'process.env.NODE_ENV': JSON.stringify('development'),
'process.env.VUE_ENV': JSON.stringify('browser')
'process.env.VUE_ENV': JSON.stringify('browser'),
'DEBUG': JSON.stringify(true),
'RELEASE': JSON.stringify(false),
})
)
}
......
......@@ -8,7 +8,7 @@ const {loadGulpFile, startGulpTask, setTsConfig} = require('./gulp-helper');
const gulpFile = path.resolve(__dirname, 'dev-config', 'gulpfile.js');
loadGulpFile(gulpFile);
const {manifest: {name}} = require(path.resolve('./package.json'));
const {name} = require(path.resolve('./package.json'));
exports.runGulp = function (task) {
return new Promise((resolve, reject)=>{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -189,7 +189,7 @@ body@^5.1.0:
raw-body "~1.1.0"
safe-json-parse "~1.0.1"
brace-expansion@^1.0.0:
brace-expansion@^1.0.0, brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
......@@ -471,6 +471,11 @@ estree-walker@^0.5.2:
resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39"
integrity sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig==
estree-walker@^0.6.0:
version "0.6.0"
resolved "http://registry.npm.taobao.org/estree-walker/download/estree-walker-0.6.0.tgz#5d865327c44a618dde5699f763891ae31f257dae"
integrity sha1-XYZTJ8RKYY3eVpn3Y4ka4x8lfa4=
esutils@^2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
......@@ -1409,7 +1414,7 @@ micromatch@^2.3.11:
parse-glob "^3.0.4"
regex-cache "^0.4.2"
micromatch@^3.0.4:
micromatch@^3.0.4, micromatch@^3.1.10:
version "3.1.10"
resolved "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==
......@@ -1435,6 +1440,13 @@ minimatch@^2.0.1:
dependencies:
brace-expansion "^1.0.0"
minimatch@^3.0.2:
version "3.0.4"
resolved "http://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=
dependencies:
brace-expansion "^1.1.7"
minimatch@~0.2.11:
version "0.2.14"
resolved "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz#c74e780574f63c6f9a090e90efbe6ef53a6a756a"
......@@ -1836,6 +1848,15 @@ rollup-plugin-node-resolve@^3.4.0:
is-module "^1.0.0"
resolve "^1.1.6"
rollup-plugin-replace@^2.1.0:
version "2.1.0"
resolved "http://registry.npm.taobao.org/rollup-plugin-replace/download/rollup-plugin-replace-2.1.0.tgz#f9c07a4a89a2f8be912ee54b3f0f68d91e9ed0ae"
integrity sha1-+cB6Somi+L6RLuVLPw9o2R6e0K4=
dependencies:
magic-string "^0.25.1"
minimatch "^3.0.2"
rollup-pluginutils "^2.0.1"
rollup-plugin-typescript2@^0.18.0:
version "0.18.0"
resolved "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.18.0.tgz#ab3f7003f47c3858810d516e4d3fada546bfb1df"
......@@ -1864,6 +1885,14 @@ rollup-pluginutils@2.3.3, rollup-pluginutils@^2.3.3:
estree-walker "^0.5.2"
micromatch "^2.3.11"
rollup-pluginutils@^2.0.1:
version "2.4.1"
resolved "http://registry.npm.taobao.org/rollup-pluginutils/download/rollup-pluginutils-2.4.1.tgz#de43ab54965bbf47843599a7f3adceb723de38db"
integrity sha1-3kOrVJZbv0eENZmn863OtyPeONs=
dependencies:
estree-walker "^0.6.0"
micromatch "^3.1.10"
rollup@^0.66.6:
version "0.66.6"
resolved "https://registry.npmjs.org/rollup/-/rollup-0.66.6.tgz#ce7d6185beb7acea644ce220c25e71ae03275482"
......@@ -2152,7 +2181,7 @@ to-regex@^3.0.1, to-regex@^3.0.2:
regex-not "^1.0.2"
safe-regex "^1.1.0"
tslib@1.9.3:
tslib@1.9.3, tslib@^1.9.3:
version "1.9.3"
resolved "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
......
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