Clean up webpack configuration

This commit is contained in:
Paulo Gustavo Veiga 2021-10-02 20:29:24 -07:00
parent 75ee4529c4
commit 32b8f46f66
6 changed files with 4 additions and 4 deletions

View File

@ -8,6 +8,7 @@ module.exports = {
filename: 'core.js',
publicPath: '',
},
target: 'web',
module: {
rules: [
{

View File

@ -4,7 +4,6 @@ const common = require('./webpack.common');
const devConfig = {
mode: 'development',
target: 'web',
plugins: [new HotModuleReplacementPlugin()],
devtool: 'eval-source-map'
};

View File

@ -22,8 +22,9 @@ module.exports = {
},
],
},
target: 'web',
resolve: {
extensions: ['.js', '.jsx', '.json'],
extensions: ['.js', '.json'],
},
plugins: [new CleanWebpackPlugin()],
};

View File

@ -10,7 +10,6 @@ const devConfig = {
port: 8080,
open: true,
},
target: 'web',
plugins: [new HotModuleReplacementPlugin()],
devtool: 'eval-source-map',
};

View File

@ -22,6 +22,7 @@ module.exports = {
},
],
},
target: 'web',
resolve: {
extensions: ['.js', '.jsx', '.json'],
},

View File

@ -41,7 +41,6 @@ module.exports = {
open: true,
},
mode: 'development',
target: 'web',
devtool: 'source-map',
module: {
rules: [