Skip to content

Commit b8fbc51

Browse files
authored
fix: #178 optimize postcss-loader exclude (#179)
* fix: #178 optimize postcss-loader exclude * docs(changeset): optimize postcss-loader exclude
1 parent ac25ced commit b8fbc51

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/cyan-owls-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ko': patch
3+
---
4+
5+
optimize postcss-loader exclude

packages/ko/src/webpack/loaders/style.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class Style {
2424
{
2525
test: /\.css$/,
2626
use: [this.styleLoader, this.cssLoader, this.postCSSLoader],
27+
exclude: /node_modules/,
28+
},
29+
{
30+
test: /\.css$/,
31+
use: [this.styleLoader, this.cssLoader],
32+
include: /node_modules/,
2733
},
2834
{
2935
test: /\.s[ac]ss$/,

0 commit comments

Comments
 (0)