Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Webpack 5 #1707

Merged
merged 11 commits into from
Nov 5, 2020
Merged
10 changes: 9 additions & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ const styleguide = styleguidist({
},
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules'
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true
}
}
]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
use: ['style-loader', 'css-loader'],
},
],
},
Expand Down
10 changes: 9 additions & 1 deletion examples/customised/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules',
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
},
},
],
},
{
test: /\.svg$/,
Expand Down
10 changes: 9 additions & 1 deletion examples/express/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules',
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
},
},
],
},
],
},
Expand Down
10 changes: 9 additions & 1 deletion examples/preact/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules',
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
},
},
],
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion examples/sections/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
use: ['style-loader', 'css-loader'],
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion examples/themed/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
use: ['style-loader', 'css-loader'],
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions examples/webpack/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
presets: [
[
'@babel/env',
'@babel/preset-env',
{
debug: true,
modules: false,
useBuiltIns: 'usage',
corejs: 3,
},
],
'@babel/react',
Expand Down
Loading