Describe the bug
The output of webpack doesn't get served.
What is the current behavior?

My config:
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: './index.ts',
context: path.resolve(__dirname),
module: {
rules: [
{
test: /\.(js|jsx|ts|tsx)$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader', 'postcss-loader'],
},
],
},
devServer: {
contentBase: './demo',
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};
Command:
webpack serve --config ./demo/webpack.config.js --mode development --open chrome
To Reproduce
Steps to reproduce the behavior:
- Define a devServer config in your webpack config file
- Run webpack serve --config webpack.dev.js
Expected behavior
The output js file can be served by dev server
Additional context

Describe the bug
The output of webpack doesn't get served.
What is the current behavior?
My config:
Command:
webpack serve --config ./demo/webpack.config.js --mode development --open chromeTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The output js file can be served by dev server
Additional context