Skip to content

Commit e0d2d85

Browse files
author
Jannik Zschiesche
authored
Merge pull request #106 from Becklyn/ignore-loader
Ignore CSS files when compiling
2 parents bd65d3d + b594b6c commit e0d2d85

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* (internal) Bumped all dependencies.
3434
* (improvement) Allow `++` in JS/TS code.
3535
* (improvement) The code is now always compiled per entry file
36+
* (improvement) Ignore `.css` files when compiling webpack. You need to import them manually in your SCSS.
3637

3738

3839
8.1.0

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"eslint-plugin-react": "^7.17.0",
3838
"eslint-plugin-react-hooks": "^2.3.0",
3939
"fs-extra": "^8.1.0",
40+
"ignore-loader": "^0.1.2",
4041
"kaba-babel-preset": "^4.1.1",
4142
"kleur": "^3.0.3",
4243
"pretty-hrtime": "^1.0.3",

src/Kaba.ts

+6
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ export class Kaba
382382
test: /\.(svg|txt)$/,
383383
loader: "raw-loader",
384384
},
385+
386+
// ignore CSS files
387+
{
388+
test: /\.css$/,
389+
loader: "ignore-loader",
390+
}
385391
] as webpack.RuleSetRule[],
386392
},
387393

0 commit comments

Comments
 (0)