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

Fixed webpack stats capabilities

parent 147a17d0
...@@ -58,6 +58,8 @@ services: ...@@ -58,6 +58,8 @@ services:
ports: ports:
# Replicate the node server port. More info in ./frontend/server.js # Replicate the node server port. More info in ./frontend/server.js
- 3000:3000 - 3000:3000
# replicate the view stats port
- "8888:8888"
documentation: documentation:
build: ./documentation build: ./documentation
volumes: volumes:
......
node_modules node_modules
webpack-stats.json webpack-stats.json
stats.json
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
"dev": "node server.js", "dev": "node server.js",
"build": "webpack --config webpack.config.build.js", "build": "webpack --config webpack.config.build.js",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"stats": "webpack --profile --json > frontend/static/frontend/stats.json", "stats": "webpack --config webpack.config.build.js --profile --json > stats.json",
"view-stats": "webpack-bundle-analyzer frontend/static/frontend/stats.json" "view-stats": "webpack-bundle-analyzer --host 0.0.0.0 --port 8888 stats.json"
}, },
"repository": { "repository": {
"type": "git", "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