native 增加prod参数
This commit is contained in:
parent
379dd2c455
commit
45866b0ef0
|
|
@ -93,6 +93,7 @@ async function build(cmd) {
|
||||||
const result = cross_spawn_1.default.sync(`cross-env`, [
|
const result = cross_spawn_1.default.sync(`cross-env`, [
|
||||||
`NODE_ENV=${cmd.mode}`,
|
`NODE_ENV=${cmd.mode}`,
|
||||||
'OAK_PLATFORM=native',
|
'OAK_PLATFORM=native',
|
||||||
|
`PROD=${!!cmd.prod}`,
|
||||||
'react-native',
|
'react-native',
|
||||||
'start'
|
'start'
|
||||||
].filter(Boolean), {
|
].filter(Boolean), {
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ export default async function build(cmd: any) {
|
||||||
[
|
[
|
||||||
`NODE_ENV=${cmd.mode}`,
|
`NODE_ENV=${cmd.mode}`,
|
||||||
'OAK_PLATFORM=native',
|
'OAK_PLATFORM=native',
|
||||||
|
`PROD=${!!cmd.prod}`,
|
||||||
'react-native',
|
'react-native',
|
||||||
'start',
|
'start',
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue