Skip to content

Commit e3f24cd

Browse files
committed
fix: fix the sass example
1 parent 37b257b commit e3f24cd

File tree

3 files changed

+6
-55
lines changed

3 files changed

+6
-55
lines changed

examples/react-with-sass/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"description": "",
55
"main": "index.js",
66
"private": true,
7-
"build": {
8-
"build": "rspack build ",
7+
"scripts": {
8+
"build": "rspack build",
99
"dev": "rspack serve"
1010
},
11-
"scripts": {},
1211
"keywords": [],
1312
"author": "",
1413
"license": "MIT",

examples/react-with-sass/rspack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ module.exports = {
1111
module: {
1212
rules: [
1313
{
14-
test : {
15-
type: "regexp",
16-
matcher: '\\.s[ac]ss$'
17-
},
18-
use: [{ builtinLoader: "builtin:sass-loader" }],
14+
test: /\.s[ac]ss$/,
15+
use: [
16+
{ loader: "builtin:sass-loader" }
17+
],
1918
type: "css",
2019
},
2120
],

packages/rspack/example/react-with-less.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)