提交 387282df 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 3f9d86ba
...@@ -73,7 +73,7 @@ module.exports = (api, options) => { ...@@ -73,7 +73,7 @@ module.exports = (api, options) => {
process.env.VUE_CLI_BUILD_TARGET = args.target process.env.VUE_CLI_BUILD_TARGET = args.target
if (args['sourcemap']) process.env.SOURCEMAP = args['sourcemap'] if (args.sourcemap) process.env.SOURCEMAP = args.sourcemap
await build(args, api, options) await build(args, api, options)
......
...@@ -34,7 +34,7 @@ module.exports = function custom (argv) { ...@@ -34,7 +34,7 @@ module.exports = function custom (argv) {
clean: false, clean: false,
subpackage: argv.subpackage, subpackage: argv.subpackage,
plugin: argv.plugin, plugin: argv.plugin,
sourcemap: argv['sourcemap'], sourcemap: argv.sourcemap
}).catch(err => { }).catch(err => {
console.error(err) console.error(err)
process.exit(1) process.exit(1)
......
...@@ -289,8 +289,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt ...@@ -289,8 +289,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
noSources: true, noSources: true,
append: false append: false
} }
if (isInHBuilderX && process.env.SOURCEMAP_PATH) if (isInHBuilderX && process.env.SOURCEMAP_PATH) { sourceMapOptions.filename = process.env.SOURCEMAP_PATH }
sourceMapOptions.filename = process.env.SOURCEMAP_PATH
if (useEvalSourceMap || useSourceMap) { if (useEvalSourceMap || useSourceMap) {
plugins.push(sourceMap.createSourceMapDevToolPlugin(!sourceMapOptions.filename, sourceMapOptions)) plugins.push(sourceMap.createSourceMapDevToolPlugin(!sourceMapOptions.filename, sourceMapOptions))
} }
...@@ -302,7 +301,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt ...@@ -302,7 +301,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
} }
} }
} }
try { try {
if (process.env.UNI_HBUILDERX_PLUGINS) { if (process.env.UNI_HBUILDERX_PLUGINS) {
require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers/lib/bytenode')) require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers/lib/bytenode'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册