summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000000..750ee4c89a
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,20 @@
+const path = require('path');
+const TerserPlugin = require('terser-webpack-plugin');
+
+module.exports = {
+ mode: 'production',
+ entry: {
+ index: './web_src/js/index.js',
+ },
+ devtool: 'source-map',
+ output: {
+ path: path.resolve(__dirname, 'public/js'),
+ filename: "[name].js"
+ },
+ optimization: {
+ minimize: true,
+ minimizer: [new TerserPlugin({
+ sourceMap: true
+ })],
+ },
+};