2022-02-26 20:08:53 -05:00
|
|
|
const TerserPlugin = require("terser-webpack-plugin");
|
2017-08-22 16:58:15 +09:00
|
|
|
|
2017-05-22 08:16:24 +09:00
|
|
|
module.exports = {
|
2022-02-26 20:08:53 -05:00
|
|
|
entry: "./src/main.ts",
|
|
|
|
|
output: {
|
|
|
|
|
filename: "./gotty-bundle.js"
|
|
|
|
|
},
|
|
|
|
|
devtool: "source-map",
|
|
|
|
|
resolve: {
|
|
|
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
|
|
|
},
|
|
|
|
|
module: {
|
|
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
|
loader: "ts-loader",
|
|
|
|
|
exclude: /node_modules/
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
test: /\.js$/,
|
|
|
|
|
include: /node_modules/,
|
|
|
|
|
loader: 'license-loader'
|
|
|
|
|
}
|
2017-08-22 16:58:15 +09:00
|
|
|
]
|
2022-02-26 20:08:53 -05:00
|
|
|
},
|
|
|
|
|
optimization: {
|
|
|
|
|
minimize: true,
|
|
|
|
|
minimizer: [new TerserPlugin()],
|
|
|
|
|
}
|
2017-05-22 08:16:24 +09:00
|
|
|
};
|