aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/webpack.config.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <marussy@mit.bme.hu>2021-06-29 18:29:13 +0200
committerLibravatar Kristóf Marussy <marussy@mit.bme.hu>2021-06-29 18:31:07 +0200
commitad35e53fa23be5312f1e4b8d830a73e8ade1f08c (patch)
treeb48aeb3034358e0a02a6d17221428522ad879b77 /language-web/webpack.config.js
parentRemove Xtext generated Javascript file (diff)
downloadrefinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.gz
refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.tar.zst
refinery-ad35e53fa23be5312f1e4b8d830a73e8ade1f08c.zip
Generate all files on build
Diffstat (limited to 'language-web/webpack.config.js')
-rw-r--r--language-web/webpack.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/language-web/webpack.config.js b/language-web/webpack.config.js
index bd999a85..ec07d4cf 100644
--- a/language-web/webpack.config.js
+++ b/language-web/webpack.config.js
@@ -4,12 +4,13 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
4const MiniCssExtractPlugin = require("mini-css-extract-plugin"); 4const MiniCssExtractPlugin = require("mini-css-extract-plugin");
5 5
6const devMode = process.env.NODE_ENV !== 'production'; 6const devMode = process.env.NODE_ENV !== 'production';
7const outputPath = path.resolve(__dirname, 'build/webpack', devMode ? 'development' : 'production');
7 8
8module.exports = { 9module.exports = {
9 mode: devMode ? 'development' : 'production', 10 mode: devMode ? 'development' : 'production',
10 entry: './src/main/js', 11 entry: './src/main/js',
11 output: { 12 output: {
12 path: path.resolve(__dirname, 'src/main/webapp'), 13 path: outputPath,
13 publicPath: '/', 14 publicPath: '/',
14 filename: devMode ? '[name].js' : '[contenthash].js', 15 filename: devMode ? '[name].js' : '[contenthash].js',
15 chunkFilename: devMode ? '[id].js' : '[contenthash].js', 16 chunkFilename: devMode ? '[id].js' : '[contenthash].js',