1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00
bluelib/styleguide.config.js

45 lines
1.3 KiB
JavaScript
Raw Normal View History

const path = require("path")
2021-01-25 18:37:58 +00:00
module.exports = {
webpackConfig: {
module: {
rules: [
{
test: /[.]jsx?$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /[.]module[.]css$/,
2021-01-25 18:37:58 +00:00
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"
},
2021-01-25 18:37:58 +00:00
]
}
}
}