al-quran.reflectslight.io/etc/webpack.common.js
2024-08-22 16:12:41 -03:00

36 lines
816 B
JavaScript

const path = require("path");
module.exports = {
resolve: {
modules: [path.resolve(__dirname, "..", "node_modules")],
alias: {
"@css": path.resolve(__dirname, "..", "src", "css"),
"@json": path.resolve(__dirname, "..", "src", "json"),
"~": path.resolve(__dirname, "..", "src", "js"),
},
extensions: [".js", ".ts", ".tsx", ".json", ".css", ".scss"],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'esbuild-loader',
exclude: /node_modules/,
options: {
loader: 'tsx',
target: 'es2015'
}
},
{
test: /\.(scss|css)$/i,
exclude: /node_modules/,
use: [
"style-loader",
"css-loader",
"sass-loader",
]
}
],
},
plugins: []
};