From 93b3cdbdc0738b931908dad95978d8402a24d418 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 30 May 2024 00:18:50 +0200 Subject: [PATCH] perf: :zap: disable sourcemap when building in prod --- webpack.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.js b/webpack.js index 49ae69e..0b7c35f 100644 --- a/webpack.js +++ b/webpack.js @@ -13,6 +13,7 @@ webpackConfig.plugins.push( files: 'src', }), ) + webpackConfig.plugins.push( new StyleLintPlugin({ files: 'src/**/*.{css,scss,vue}', @@ -24,4 +25,7 @@ webpackConfig.module.rules.push({ type: 'asset/source', }) +webpackConfig.devtool = + webpackConfig.mode !== 'production' ? webpackConfig.devtool : false + module.exports = webpackConfig