gotty/js/webpack.config.js
Will Owens 48b972da9d Update xterm libary to 4.17
Mostly a copy and paste from this community patch.

aee8f007f9
2022-02-27 13:31:40 -05:00

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()],
}
};