chore(build): do not create an index.html file on watch

This commit is contained in:
Baptiste Grob
2020-09-07 10:03:32 +02:00
parent 52c7577e74
commit a5a4200a81

View File

@@ -6,14 +6,15 @@ module.exports = (env, argv) => {
const port = argv.port || 3001; const port = argv.port || 3001;
return merge(config(env, argv), { return merge(config(env, argv), {
mode: 'development', mode: 'development',
plugins: [ /** Only create an html file for the dev-server */
plugins: argv.liveReload ? [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: './index.html', template: './index.html',
templateParameters: { templateParameters: {
env: process.env env: process.env
}, },
}), }),
], ] : [],
devServer: { devServer: {
proxy: { proxy: {
'/extensions': { '/extensions': {