npm i f2e-middle-webpack --SD
f2e-server middleware for webpack
.f2econfig.js
module.exports = {
middlewares: [
{
middleware: 'webpack',
// test 需要配合 webpack 的 output 配置
test: /^static\//,
config_file: 'webpack.config.js',
// options?: WebpackDevMiddleware.Options
}
]
}