mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
Hide devtools webpack
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user