landxml/webpack.prod.js

45 lines
1.0 KiB
JavaScript
Raw Permalink Normal View History

2020-12-10 16:54:02 +01:00
const common = require('./webpack.common.js')
const { merge } = require('webpack-merge')
const path = require('path')
const webpack = require('webpack')
module.exports = [
merge(common[0], {
mode: 'production',
output: {
path: path.join(__dirname, 'bundles'),
filename: 'landxml.node.js'
},
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
]
}),
merge(common[1], {
mode: 'production',
output: {
path: path.join(__dirname, 'bundles'),
filename: 'landxml.native.js'
},
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
]
}),
merge(common[2], {
mode: 'production',
output: {
path: path.join(__dirname, 'bundles'),
filename: 'landxml.browser.js'
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
]
})
]