2020-08-23 04:06:42 +02:00
|
|
|
const path = require("path");
|
|
|
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
2018-04-15 03:53:20 +02:00
|
|
|
|
2017-09-04 04:52:36 +02:00
|
|
|
module.exports = {
|
2020-08-23 04:06:42 +02:00
|
|
|
entry: {
|
|
|
|
main: "./gdbgui/src/js/gdbgui.tsx",
|
|
|
|
dashboard: "./gdbgui/src/js/dashboard.tsx"
|
|
|
|
},
|
|
|
|
devtool: "source-map",
|
2017-09-04 04:52:36 +02:00
|
|
|
output: {
|
2020-08-23 04:06:42 +02:00
|
|
|
path: path.resolve(__dirname, "gdbgui/static/js/")
|
2017-09-04 04:52:36 +02:00
|
|
|
},
|
|
|
|
module: {
|
2020-08-23 04:06:42 +02:00
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: ["style-loader", "css-loader", "postcss-loader"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(j|t)sx?$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: "ts-loader",
|
|
|
|
options: {
|
|
|
|
experimentalFileCaching: true,
|
|
|
|
experimentalWatchApi: true,
|
|
|
|
transpileOnly: true
|
|
|
|
}
|
2019-04-28 17:37:04 +02:00
|
|
|
}
|
2020-08-23 04:06:42 +02:00
|
|
|
],
|
|
|
|
exclude: /node_modules/
|
|
|
|
}
|
|
|
|
]
|
2019-04-28 17:37:04 +02:00
|
|
|
},
|
2020-08-23 19:08:10 +02:00
|
|
|
plugins: [new ForkTsCheckerWebpackPlugin({})],
|
2019-04-28 17:37:04 +02:00
|
|
|
resolve: {
|
2020-08-23 04:06:42 +02:00
|
|
|
extensions: [".js", ".ts", ".tsx", ".css"]
|
2018-04-15 03:53:20 +02:00
|
|
|
}
|
2020-08-23 04:06:42 +02:00
|
|
|
};
|