23 lines
679 B
JavaScript
Raw Normal View History

2021-02-15 23:43:26 -08:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
2021-02-16 01:15:04 -08:00
const path = require('path');
2021-02-17 00:11:08 -08:00
const HtmlWebpackPlugin = require('html-webpack-plugin');
2021-02-16 11:22:55 -08:00
2021-02-15 23:43:26 -08:00
module.exports = merge(common, {
2022-07-12 18:58:11 -07:00
mode: 'production',
devtool: 'source-map',
optimization: {
minimize: true,
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, 'public/index.html'),
templateParameters: {
PUBLIC_URL: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com',
2024-02-08 22:54:10 -08:00
CLIENT_TYPE: 'rest'
2022-07-12 18:58:11 -07:00
},
base: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com',
}),
],
2021-02-15 23:43:26 -08:00
});