Skip to content

Commit 606eb72

Browse files
committed
Sourcemap Fix
1 parent 68f0767 commit 606eb72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Resources/Build/webpack.common.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const StyleLintPlugin = require('stylelint-webpack-plugin');
66
const WebpackBar = require('webpackbar');
77
const CopyPlugin = require('copy-webpack-plugin');
88
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
9+
const ImageminPlugin = require('imagemin-webpack-plugin').default;
910

1011
module.exports = {
1112
stats: 'none',
@@ -24,6 +25,7 @@ module.exports = {
2425
exclude: /node_modules/,
2526
loader: "eslint-loader",
2627
options: {
28+
sourceMap: true,
2729
cache: false,
2830
configFile: '.eslintrc.json',
2931
emitError: true,
@@ -38,6 +40,7 @@ module.exports = {
3840
use: {
3941
loader: 'babel-loader',
4042
options: {
43+
sourceMap: true,
4144
presets: ['@babel/preset-env']
4245
}
4346
}

0 commit comments

Comments
 (0)