mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 18:00:05 +01:00
15 lines
440 B
JavaScript
15 lines
440 B
JavaScript
|
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()]
|
||
|
});
|