2024-02-18 13:24:54 +01:00
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
resolve: {
|
2024-03-16 18:07:53 +01:00
|
|
|
modules: [path.resolve(__dirname, "node_modules")],
|
|
|
|
alias: {
|
2024-07-23 02:38:23 +02:00
|
|
|
"@css": path.resolve(__dirname, "src/css"),
|
2024-03-16 18:07:53 +01:00
|
|
|
"@json": path.resolve(__dirname, "src/json"),
|
|
|
|
"~": path.resolve(__dirname, "src/js"),
|
|
|
|
},
|
2024-07-23 02:38:23 +02:00
|
|
|
extensions: [".js", ".ts", ".tsx", ".json", ".css", ".scss"],
|
2024-02-18 13:24:54 +01:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
2024-04-26 01:36:34 +02:00
|
|
|
loader: 'esbuild-loader',
|
2024-02-18 13:24:54 +01:00
|
|
|
exclude: /node_modules/,
|
2024-04-26 01:36:34 +02:00
|
|
|
options: {
|
|
|
|
loader: 'tsx',
|
|
|
|
target: 'es2015'
|
|
|
|
}
|
2024-02-18 13:24:54 +01:00
|
|
|
},
|
2024-07-23 02:38:23 +02:00
|
|
|
{
|
|
|
|
test: /\.(scss|css)$/i,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: [
|
|
|
|
"style-loader",
|
|
|
|
"css-loader",
|
|
|
|
"sass-loader",
|
|
|
|
]
|
|
|
|
}
|
2024-02-18 13:24:54 +01:00
|
|
|
],
|
|
|
|
},
|
2024-07-23 02:38:23 +02:00
|
|
|
plugins: []
|
2024-02-18 13:24:54 +01:00
|
|
|
};
|