al-quran.reflectslight.io/webpack.common.js

37 lines
783 B
JavaScript
Raw Normal View History

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"],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'esbuild-loader',
exclude: /node_modules/,
options: {
loader: 'tsx',
target: 'es2015'
}
},
2024-07-23 02:38:23 +02:00
{
test: /\.(scss|css)$/i,
exclude: /node_modules/,
use: [
"style-loader",
"css-loader",
"sass-loader",
]
}
],
},
2024-07-23 02:38:23 +02:00
plugins: []
};