Move stats.json into the root

This commit is contained in:
Michael Jackson 2018-07-05 17:08:56 -07:00
parent 89239a7c42
commit ffde00c444
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -3,7 +3,7 @@
/data
/node_modules
/public/_assets
/server/stats.json
/stats.json
npm-debug.log*
yarn-debug.log*

View File

@ -2,7 +2,7 @@
"private": true,
"scripts": {
"start": "docker-compose up",
"build": "NODE_ENV=production webpack -p --json > server/stats.json",
"build": "NODE_ENV=production webpack -p --json > stats.json",
"lint": "eslint client && eslint server",
"test": "jest"
},

View File

@ -10,7 +10,7 @@ function startServer(id) {
process.env.NODE_ENV === "production"
? createServer(
path.resolve(__dirname, "public"),
path.resolve(__dirname, "server/stats.json")
path.resolve(__dirname, "stats.json")
)
: createDevServer(
path.resolve(__dirname, "public"),