2021-04-16 21:49:17 +08:00
|
|
|
const path = require('path');
|
2017-08-22 15:58:15 +08:00
|
|
|
|
2017-05-22 07:16:24 +08:00
|
|
|
module.exports = {
|
|
|
|
entry: "./src/main.ts",
|
2021-04-16 21:49:17 +08:00
|
|
|
entry: {
|
|
|
|
"gotty": "./src/main.ts",
|
|
|
|
},
|
2017-05-22 07:16:24 +08:00
|
|
|
output: {
|
2021-04-16 21:49:17 +08:00
|
|
|
path: path.resolve(__dirname, '../bindata/static/js/'),
|
2017-05-22 07:16:24 +08:00
|
|
|
},
|
|
|
|
devtool: "source-map",
|
|
|
|
resolve: {
|
|
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
loader: "ts-loader",
|
2017-08-23 09:58:18 +08:00
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
2021-04-16 21:49:17 +08:00
|
|
|
{
|
|
|
|
test: /\.css$/i,
|
|
|
|
use: ["style-loader", "css-loader"],
|
|
|
|
},
|
2017-08-23 09:58:18 +08:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
include: /node_modules/,
|
|
|
|
loader: 'license-loader'
|
2021-04-16 21:49:17 +08:00
|
|
|
},
|
|
|
|
],
|
2017-08-22 15:58:15 +08:00
|
|
|
},
|
2017-05-22 07:16:24 +08:00
|
|
|
};
|