thunderhub/webpack.production.js

15 lines
440 B
JavaScript
Raw Normal View History

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