aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-28 16:16:39 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitd724dc5ff68b8656d76eec0b4733ba166f9fa8c9 (patch)
tree7758d93a706712580822865362afffff8b9af912 /vnext/webpack.config.js
parente9ed990c111703fb17e8dcd987e0891fad00938e (diff)
Webpack: enable error overlay plugin
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 0d35075f..cdcf179c 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -4,11 +4,12 @@ const HtmlWebPackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
+const ErrorOverlayPlugin = require('error-overlay-webpack-plugin');
module.exports = (env, argv) => {
const dev = argv.mode !== 'production';
const config = {
- devtool: dev ? 'source-map' : false,
+ devtool: dev ? 'cheap-module-source-map' : false,
mode: dev ? 'development' : 'production',
entry: {
'Juick': [
@@ -91,7 +92,14 @@ module.exports = (env, argv) => {
template: './src/index.html',
filename: './index.html'
}),
- new ESLintPlugin({ files: 'src', lintDirtyModulesOnly: true, failOnWarning: false, failOnError: true, fix: false })
+ new ESLintPlugin({
+ files: 'src',
+ lintDirtyModulesOnly: true,
+ failOnWarning: false,
+ failOnError: true,
+ fix: false
+ }),
+ new ErrorOverlayPlugin()
],
devServer: {
historyApiFallback: true,