File tree Expand file tree Collapse file tree 10 files changed +57
-36
lines changed Expand file tree Collapse file tree 10 files changed +57
-36
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,11 @@ test-results
1313! .vscode /settings.json
1414! .vscode /extensions.json
1515.idea
16+
17+ # Ignore auto generated CSS declarations
18+ * .module.css.d.ts
19+ * .module.sass.d.ts
20+ * .module.scss.d.ts
21+ * .module.less.d.ts
22+ * .module.styl.d.ts
23+ * .module.stylus.d.ts
Original file line number Diff line number Diff line change 11import { defineConfig } from '@rsbuild/core' ;
2- import { pluginTypedCSSModules } from '../src' ;
2+ import { pluginLess } from '@rsbuild/plugin-less' ;
3+ import { pluginSass } from '@rsbuild/plugin-sass' ;
4+ import { pluginStylus } from '@rsbuild/plugin-stylus' ;
5+ import { pluginTypedCSSModules } from '../dist' ;
36
47export default defineConfig ( {
5- plugins : [ pluginTypedCSSModules ( ) ] ,
8+ plugins : [
9+ pluginLess ( ) ,
10+ pluginSass ( ) ,
11+ pluginStylus ( ) ,
12+ pluginTypedCSSModules ( ) ,
13+ ] ,
614} ) ;
Original file line number Diff line number Diff line change 1+ .the-a-class {
2+ color : red;
3+ }
Original file line number Diff line number Diff line change 1+ .a {
2+ font-size : 14px ;
3+ }
Original file line number Diff line number Diff line change 1+ @value primary: blue;
2+
3+ .btn {
4+ padding : 20px ;
5+ border : 1px solid #000 ;
6+ }
7+
8+ .the-b-class {
9+ composes : btn;
10+ composes : a from ' ./a.module.scss' ;
11+ color : primary;
12+ }
13+
14+ .default {
15+ color : red ;
16+ }
17+
18+ ._underline {
19+ color : blue ;
20+ }
Original file line number Diff line number Diff line change 1+ .the-c-class {
2+ color : yellow ;
3+ }
Original file line number Diff line number Diff line change 1+ .the-d-class {
2+ color : green ;
3+ }
Original file line number Diff line number Diff line change 1+ .title-class
2+ font-size : 14px ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import './index.css' ;
2-
3- document . querySelector ( '#root' ) . innerHTML = `
4- <div class="content">
5- <h1>Vanilla Rsbuild</h1>
6- <p>Start building amazing things with Rsbuild.</p>
7- </div>
8- ` ;
1+ import './a.css' ;
2+ import './b.module.scss' ;
3+ import './c.module.less' ;
4+ import './d.global.less' ;
5+ import './e.module.styl' ;
You can’t perform that action at this time.
0 commit comments