45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
|
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')
|
||
|
}),
|
||
|
]
|
||
|
})
|
||
|
]
|