Spaces:
Runtime error
Runtime error
Update webpack.config.js
Browse files- webpack.config.js +10 -0
webpack.config.js
CHANGED
@@ -46,6 +46,16 @@ const base = {
|
|
46 |
{ from: /^\/\d+\/embed\/?$/, to: '/embed.html' },
|
47 |
{ from: /^\/addons\/?$/, to: '/addons.html' }
|
48 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
},
|
51 |
output: {
|
|
|
46 |
{ from: /^\/\d+\/embed\/?$/, to: '/embed.html' },
|
47 |
{ from: /^\/addons\/?$/, to: '/addons.html' }
|
48 |
]
|
49 |
+
},
|
50 |
+
setupMiddlewares(middlewares, devServer) {
|
51 |
+
devServer.app.get('/stats.json', (req, res) => {
|
52 |
+
const stats = devServer.stats.toJson({
|
53 |
+
all: false,
|
54 |
+
assets: true
|
55 |
+
});
|
56 |
+
res.json(stats);
|
57 |
+
});
|
58 |
+
return middlewares;
|
59 |
}
|
60 |
},
|
61 |
output: {
|