chore(build): do not create an index.html file on watch
This commit is contained in:
@@ -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': {
|
||||||
|
|||||||
Reference in New Issue
Block a user