Hide devtools webpack

This commit is contained in:
Elio Struyf
2022-03-09 11:27:04 +01:00
parent f0cf59a1ac
commit ac8a429ac2
4 changed files with 10 additions and 7 deletions
+3 -2
View File
@@ -35,8 +35,7 @@ const config = [
]
},
performance: {
maxEntrypointSize: 400000,
maxAssetSize: 400000
hints: false
},
plugins: [],
devServer: {
@@ -56,6 +55,8 @@ module.exports = (env, argv) => {
configItem.mode = argv.mode;
if (argv.mode === 'production') {
configItem.devtool = "hidden-source-map";
configItem.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: "dashboard.html",
+3 -2
View File
@@ -40,8 +40,7 @@ const config = [
}]
},
performance: {
maxEntrypointSize: 400000,
maxAssetSize: 400000
hints: false
},
optimization: {
splitChunks: {
@@ -66,6 +65,8 @@ module.exports = (env, argv) => {
configItem.mode = argv.mode;
if (argv.mode === 'production') {
configItem.devtool = "hidden-source-map";
configItem.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: "extension.html",
+3 -2
View File
@@ -42,8 +42,7 @@ const config = [{
]
},
performance: {
maxEntrypointSize: 400000,
maxAssetSize: 400000
hints: false
},
plugins: [],
devServer: {
@@ -62,6 +61,8 @@ module.exports = (env, argv) => {
configItem.mode = argv.mode;
if (argv.mode === 'production') {
configItem.devtool = "hidden-source-map";
configItem.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: "viewpanel.html",