diff --git a/webpack.config.js b/webpack.config.js index f4cbeae6..ba155a5e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,6 +20,7 @@ const clientBuild = { mode: 'production', entry: './src/twig.js', target: 'web', + devtool: '#source-map', node: { __dirname: false, __filename: false @@ -50,6 +51,7 @@ const clientBuild = { optimization: { minimize: true, minimizer: [new TerserJsPlugin({ + sourceMap: true, include: /\.min\.js$/ })] }