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

chore(cli): ignore automator when subpackage

上级 cd806d8a
...@@ -197,7 +197,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt ...@@ -197,7 +197,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
if (!isAppView) { // app-plus view不需要copy if (!isAppView) { // app-plus view不需要copy
plugins.push(new CopyWebpackPlugin(getCopyWebpackPluginOptions(manifestPlatformOptions, vueOptions))) plugins.push(new CopyWebpackPlugin(getCopyWebpackPluginOptions(manifestPlatformOptions, vueOptions)))
} }
if (!process.env.UNI_SUBPACKGE) {
try { try {
const automatorJson = require.resolve('@dcloudio/uni-automator/dist/automator.json') const automatorJson = require.resolve('@dcloudio/uni-automator/dist/automator.json')
plugins.push(new CopyWebpackPlugin([{ plugins.push(new CopyWebpackPlugin([{
...@@ -215,6 +215,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt ...@@ -215,6 +215,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
} }
}])) }]))
} catch (e) {} } catch (e) {}
}
if (process.UNI_SCRIPT_ENV && Object.keys(process.UNI_SCRIPT_ENV).length) { if (process.UNI_SCRIPT_ENV && Object.keys(process.UNI_SCRIPT_ENV).length) {
// custom define // custom define
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册