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

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"
},
]
}
}
}