从webpack-dev-middleware 的自述文件中,有一个publicPath
配置:
publicPath: "/assets/",
// public path to bind the middleware to
// use the same as in webpack
但我不确定为什么会有这样的配置,因为已经有一个相同的配置webpack.config.js
从webpack-dev-middleware 的自述文件中,有一个publicPath
配置:
publicPath: "/assets/",
// public path to bind the middleware to
// use the same as in webpack
但我不确定为什么会有这样的配置,因为已经有一个相同的配置webpack.config.js