mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 22:57:57 +01:00
Clean up webpack configuration
This commit is contained in:
parent
75ee4529c4
commit
32b8f46f66
@ -8,6 +8,7 @@ module.exports = {
|
|||||||
filename: 'core.js',
|
filename: 'core.js',
|
||||||
publicPath: '',
|
publicPath: '',
|
||||||
},
|
},
|
||||||
|
target: 'web',
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,6 @@ const common = require('./webpack.common');
|
|||||||
|
|
||||||
const devConfig = {
|
const devConfig = {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
target: 'web',
|
|
||||||
plugins: [new HotModuleReplacementPlugin()],
|
plugins: [new HotModuleReplacementPlugin()],
|
||||||
devtool: 'eval-source-map'
|
devtool: 'eval-source-map'
|
||||||
};
|
};
|
||||||
|
@ -22,8 +22,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
target: 'web',
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx', '.json'],
|
extensions: ['.js', '.json'],
|
||||||
},
|
},
|
||||||
plugins: [new CleanWebpackPlugin()],
|
plugins: [new CleanWebpackPlugin()],
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,6 @@ const devConfig = {
|
|||||||
port: 8080,
|
port: 8080,
|
||||||
open: true,
|
open: true,
|
||||||
},
|
},
|
||||||
target: 'web',
|
|
||||||
plugins: [new HotModuleReplacementPlugin()],
|
plugins: [new HotModuleReplacementPlugin()],
|
||||||
devtool: 'eval-source-map',
|
devtool: 'eval-source-map',
|
||||||
};
|
};
|
||||||
|
@ -22,6 +22,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
target: 'web',
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx', '.json'],
|
extensions: ['.js', '.jsx', '.json'],
|
||||||
},
|
},
|
||||||
|
@ -41,7 +41,6 @@ module.exports = {
|
|||||||
open: true,
|
open: true,
|
||||||
},
|
},
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
target: 'web',
|
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Loading…
Reference in New Issue
Block a user