Skip to content

Commit 611f931

Browse files
committed
JS: Build example with source map
1 parent 3ad8d86 commit 611f931

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/example-frontend-js/webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const webpack = require("webpack");
1818
const HtmlWebpackPlugin = require('html-webpack-plugin');
19+
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
1920
const path = require("path");
2021

2122
const dist = path.resolve(__dirname, "build/dist");
@@ -49,10 +50,13 @@ module.exports = {
4950
path.resolve(__dirname, "src/main/web/")
5051
]
5152
},
53+
devtool: 'source-map',
5254
plugins: [
5355
new HtmlWebpackPlugin({
5456
title: 'Kotlin Coroutines JS Example'
5557
}),
56-
new webpack.optimize.UglifyJsPlugin()
58+
new UglifyJSPlugin({
59+
sourceMap: true
60+
})
5761
]
5862
};

0 commit comments

Comments
 (0)