mirror of
https://github.com/yudai/gotty.git
synced 2025-12-24 19:30:13 +01:00
30 lines
561 B
JavaScript
30 lines
561 B
JavaScript
const TerserPlugin = require("terser-webpack-plugin");
|
|
|
|
module.exports = {
|
|
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'
|
|
}
|
|
]
|
|
},
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [new TerserPlugin()],
|
|
}
|
|
};
|