mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 12:03:49 +01:00
50ad27ed8a
Fix export
26 lines
775 B
JavaScript
26 lines
775 B
JavaScript
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
devtool: 'source-map',
|
|
optimization: {
|
|
minimize: true
|
|
},
|
|
plugins: [
|
|
new CompressionPlugin({
|
|
test: /\.js(\?.*)?$/i
|
|
}),
|
|
new HtmlWebpackPlugin({
|
|
template: path.join(__dirname, 'public/index.html'),
|
|
templateParameters: {
|
|
PUBLIC_URL: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com'
|
|
},
|
|
base: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com'
|
|
})
|
|
]
|
|
});
|