Commits

Yura Bondarenko authored bfdda43a48a
87968: Update devServer configuration
No tags

webpack/webpack.browser.ts

Modified
1 1 import { join } from 'path';
2 2
3 3 import { buildAppConfig } from '../src/config/config.server';
4 4 import { commonExports } from './webpack.common';
5 5
6 6 module.exports = Object.assign({}, commonExports, {
7 7 target: 'web',
8 8 devServer: {
9 - before(app, server) {
9 + setupMiddlewares(middlewares, server) {
10 10 buildAppConfig(join(process.cwd(), 'src/assets/config.json'));
11 + return middlewares;
11 12 }
12 13 }
13 14 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut