mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
71b6b990c8
NODE_ENV is not a recognised command on Windows, the work around is to use the cross-env package or to have two separate scripts, one for Windows and one for Unix based systems. I figured using the cross-env is much more friendly and will save confusion, tested on both Windows and Mac.
18 lines
380 B
JSON
18 lines
380 B
JSON
{
|
|
"name": "auth-routes",
|
|
"description": "",
|
|
"dependencies": {
|
|
"body-parser": "^1.15.2",
|
|
"cross-env": "^3.1.3",
|
|
"express": "^4.14.0",
|
|
"express-session": "^1.14.2",
|
|
"nuxt": "latest",
|
|
"whatwg-fetch": "^2.0.1"
|
|
},
|
|
"scripts": {
|
|
"dev": "node server.js",
|
|
"build": "nuxt build",
|
|
"start": "cross-env NODE_ENV=production & node server.js"
|
|
}
|
|
}
|