gdbgui/webpack.config.js

40 lines
901 B
JavaScript
Raw Permalink Normal View History

const path = require("path");
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
2018-04-15 03:53:20 +02:00
module.exports = {
entry: {
main: "./gdbgui/src/js/gdbgui.tsx",
dashboard: "./gdbgui/src/js/dashboard.tsx"
},
devtool: "source-map",
output: {
path: path.resolve(__dirname, "gdbgui/static/js/")
},
module: {
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
}
],
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: {
extensions: [".js", ".ts", ".tsx", ".css"]
2018-04-15 03:53:20 +02:00
}
};