mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
7355d67a64
Since xterm and hterm do not have proper comments for their license, add license-loader to keep their license information in the minimized bundle file.
30 lines
645 B
JavaScript
30 lines
645 B
JavaScript
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: "./src/main.ts",
|
|
output: {
|
|
filename: "./dist/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'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new UglifyJSPlugin()
|
|
]
|
|
};
|