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 /data
/node_modules /node_modules
/public/_assets /public/_assets
/server/stats.json /stats.json
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*

View File

@ -2,7 +2,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"start": "docker-compose up", "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", "lint": "eslint client && eslint server",
"test": "jest" "test": "jest"
}, },

View File

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