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;
return merge(config(env, argv), {
mode: 'development',
plugins: [
/** Only create an html file for the dev-server */
plugins: argv.liveReload ? [
new HtmlWebpackPlugin({
template: './index.html',
templateParameters: {
env: process.env
},
}),
],
] : [],
devServer: {
proxy: {
'/extensions': {