mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
45 lines
No EOL
1.3 KiB
JavaScript
45 lines
No EOL
1.3 KiB
JavaScript
const path = require("path")
|
|
|
|
module.exports = {
|
|
webpackConfig: {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /[.]jsx?$/,
|
|
exclude: /node_modules/,
|
|
loader: "babel-loader"
|
|
},
|
|
{
|
|
test: /[.]module[.]css$/,
|
|
use: [
|
|
"style-loader",
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
importLoaders: 1,
|
|
modules: true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
test: /(?<![.]module)[.]css$/,
|
|
use: [
|
|
"style-loader",
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
importLoaders: 1,
|
|
modules: false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
test: /[.](?:ttf|woff|woff2)$/,
|
|
loader: "file-loader"
|
|
},
|
|
]
|
|
}
|
|
}
|
|
} |