diff options
Diffstat (limited to 'language-web/webpack.config.js')
-rw-r--r-- | language-web/webpack.config.js | 3 |
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'); | |||
4 | const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | 4 | const MiniCssExtractPlugin = require("mini-css-extract-plugin"); |
5 | 5 | ||
6 | const devMode = process.env.NODE_ENV !== 'production'; | 6 | const devMode = process.env.NODE_ENV !== 'production'; |
7 | const outputPath = path.resolve(__dirname, 'build/webpack', devMode ? 'development' : 'production'); | ||
7 | 8 | ||
8 | module.exports = { | 9 | module.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', |