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

fix(cli): webpack mode #1368

上级 efce3dcf
...@@ -132,7 +132,7 @@ const v3 = { ...@@ -132,7 +132,7 @@ const v3 = {
return { return {
devtool, devtool,
mode: process.env.NODE_ENV, mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
externals: { externals: {
vue: 'Vue' vue: 'Vue'
}, },
......
...@@ -104,7 +104,7 @@ module.exports = { ...@@ -104,7 +104,7 @@ module.exports = {
return { return {
devtool, devtool,
mode: process.env.NODE_ENV, mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
entry () { entry () {
return process.UNI_ENTRY return process.UNI_ENTRY
}, },
......
...@@ -20,7 +20,7 @@ export default function parseBaseComponent (vueComponentOptions, { ...@@ -20,7 +20,7 @@ export default function parseBaseComponent (vueComponentOptions, {
initRelation initRelation
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions) let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions)
const options = { const options = {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true, addGlobalClass: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册