Commit 9c78f586 authored by Florent Chehab's avatar Florent Chehab

Fixed webpack stats capabilities

parent 147a17d0
......@@ -58,6 +58,8 @@ services:
ports:
# Replicate the node server port. More info in ./frontend/server.js
- 3000:3000
# replicate the view stats port
- "8888:8888"
documentation:
build: ./documentation
volumes:
......
node_modules
webpack-stats.json
\ No newline at end of file
webpack-stats.json
stats.json
......@@ -9,8 +9,8 @@
"dev": "node server.js",
"build": "webpack --config webpack.config.build.js",
"test": "echo \"Error: no test specified\" && exit 1",
"stats": "webpack --profile --json > frontend/static/frontend/stats.json",
"view-stats": "webpack-bundle-analyzer frontend/static/frontend/stats.json"
"stats": "webpack --config webpack.config.build.js --profile --json > stats.json",
"view-stats": "webpack-bundle-analyzer --host 0.0.0.0 --port 8888 stats.json"
},
"repository": {
"type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment