use BUILD_ENV instead of NODE_ENV
otherwise the dev dependencies are somehow not used
This commit is contained in:
parent
dacd61a28d
commit
4f76a91572
|
@ -7,7 +7,7 @@
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
"dev": "wrangler -c wrangler.dev.toml dev",
|
"dev": "wrangler -c wrangler.dev.toml dev",
|
||||||
"publish-dev": "wrangler -c wrangler.dev.toml publish",
|
"publish-dev": "wrangler -c wrangler.dev.toml publish",
|
||||||
"publish-prod": "NODE_ENV=production wrangler -c wrangler.prod.toml publish",
|
"publish-prod": "BUILD_ENV=production wrangler -c wrangler.prod.toml publish",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "PeterCxy",
|
"author": "PeterCxy",
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = {
|
||||||
fallback: { "os": false },
|
fallback: { "os": false },
|
||||||
alias: {
|
alias: {
|
||||||
config: path.resolve(__dirname,
|
config: path.resolve(__dirname,
|
||||||
process.env.NODE_ENV == "production" ? "config.prod.json" : "config.json")
|
process.env.BUILD_ENV == "production" ? "config.prod.json" : "config.json")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
Loading…
Reference in New Issue