mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 19:44:21 +00:00
43 lines
No EOL
1.3 KiB
JavaScript
43 lines
No EOL
1.3 KiB
JavaScript
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"
|
|
},
|
|
]
|
|
}
|
|
}
|
|
} |