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

View File

@@ -1581,7 +1581,7 @@
},
"scripts": {
"dev:ext": "npm run clean && npm-run-all --parallel watch:*",
"vscode:prepublish": "npm run clean && npm-run-all --parallel prod:*",
"--vscode:prepublish": "npm run clean && npm-run-all --parallel prod:*",
"build:ext": "npm run clean && npm-run-all --parallel dev:build:*",
"watch:ext": "webpack --mode development --watch --config ./webpack/extension.config.js",
"watch:dashboard": "webpack serve --mode development --config ./webpack/dashboard.config.js",

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",

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",

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",