Файлы хранятся в такой структуре:
--dist
----html
----css
----js
но devServer не находит страницы, а переходить нужно по
localhost:5000/html/page_name.html.
Как убрать префикс
/html c URL и почему не сработал
contentBase? Заранее спасибо.
const common = {
plugins: [
new Webpack.HotModuleReplacementPlugin()
],
devServer: {
contentBase: path.resolve(__dirname, '../dist/html'),
compress: false,
port: 5000,
index: 'frontpage.html',
open: true,
overlay: {
warnings: true,
errors: true
},
historyApiFallback: true,
inline: true
}
};