mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-14 01:14:25 +00:00
34 lines
758 B
JavaScript
34 lines
758 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: "./src/main.ts",
|
|
entry: {
|
|
"gotty": "./src/main.ts",
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, '../bindata/static/js/'),
|
|
},
|
|
devtool: "source-map",
|
|
resolve: {
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: "ts-loader",
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.css$/i,
|
|
use: ["style-loader", "css-loader"],
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
include: /node_modules/,
|
|
loader: 'license-loader'
|
|
},
|
|
],
|
|
},
|
|
};
|