thunderhub/server/webpack.production.js

15 lines
455 B
JavaScript
Raw Normal View History

2020-01-31 20:57:57 +01:00
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const merge = require('webpack-merge');
const nodeExternals = require('webpack-node-externals');
const path = require('path');
2019-11-02 23:04:07 +01:00
2020-01-31 20:57:57 +01:00
const common = require('./webpack.common.js');
2019-11-02 23:04:07 +01:00
module.exports = merge(common, {
2020-01-31 20:57:57 +01:00
devtool: 'source-map',
entry: [path.join(__dirname, 'src/main.ts')],
externals: [nodeExternals({})],
mode: 'production',
plugins: [new CleanWebpackPlugin()],
2019-11-02 23:04:07 +01:00
});