Skip to content

Commit

Permalink
Merge pull request #701 from danskernesdigitalebibliotek/dapple-support
Browse files Browse the repository at this point in the history
Move webpack loaders for CSS files
  • Loading branch information
kasperg authored Nov 27, 2023
2 parents 8f9baef + 08e1320 commit 7a99caa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ module.exports = async ({ config }) => {

const rules = [
...custom.module.rules,
// We consume css from the dpl-design-system package.
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
include: path.resolve(__dirname, "../")
},
// We need to make use of css modules in our stories.
{
test: /\.scss$/,
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ module.exports = (_env, argv) => {
exclude: /node_modules/,
use: ["babel-loader"]
},
// We consume svg files from dpl-design-system package
// We consume css and svg files from dpl-design-system package
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.svg$/,
use: [
Expand Down

0 comments on commit 7a99caa

Please sign in to comment.