8000 Provides sourcemaps · drzraf/twig.js@001f05c · GitHub
[go: up one dir, main page]

Skip to content

Commit 001f05c

Browse files
author
Raphaël Droz
committed
Provides sourcemaps
1 parent 39680b8 commit 001f05c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const clientBuild = {
2020
mode: 'production',
2121
entry: './src/twig.js',
2222
target: 'web',
23+
devtool: '#source-map',
2324
node: {
2425
__dirname: false,
2526
__filename: false
@@ -50,6 +51,7 @@ const clientBuild = {
5051
optimization: {
5152
minimize: true,
5253
minimizer: [new TerserJsPlugin({
54+
sourceMap: true,
5355
include: /\.min\.js$/
5456
})]
5557
}

0 commit comments

Comments
 (0)
0