mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-06 01:41:48 +02:00
Hide devtools webpack
This commit is contained in:
@@ -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