mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 12:24:25 +00:00
8803721f3d
* Move to TypeScript from legacy JavaScript * Add support of xterm.js * Hterm is still available for backward compatibility
24 lines
465 B
JavaScript
24 lines
465 B
JavaScript
module.exports = {
|
|
entry: "./src/main.ts",
|
|
output: {
|
|
filename: "./dist/bundle.js"
|
|
},
|
|
externals: {
|
|
"hterm": "hterm",
|
|
"htermLib": "lib"
|
|
},
|
|
devtool: "source-map",
|
|
resolve: {
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: "ts-loader",
|
|
exclude: [/node_modules/],
|
|
}
|
|
]
|
|
}
|
|
};
|