clean up
This commit is contained in:
parent
dca69dda9c
commit
3960f376dc
|
@ -1,6 +1,7 @@
|
||||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
mode: 'development',
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx']
|
extensions: ['.js', '.jsx']
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,10 +3,8 @@ const webpack = require('webpack');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
|
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
|
||||||
|
|
||||||
module.exports = env => {
|
module.exports = {
|
||||||
const mode = env.mode ? env.mode : "production";
|
mode: 'production',
|
||||||
return {
|
|
||||||
mode,
|
|
||||||
entry: {
|
entry: {
|
||||||
main: './src/index.js'
|
main: './src/index.js'
|
||||||
},
|
},
|
||||||
|
@ -71,5 +69,4 @@ module.exports = env => {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue