soiz1 commited on
Commit
9cd865d
·
verified ·
1 Parent(s): d3cce16

Update webpack.config.js

Browse files
Files changed (1) hide show
  1. 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: {