Skip to content

Commit e5a7a79

Browse files
committed
[fix] css import build error
1 parent 29e0296 commit e5a7a79

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

.postcssrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
plugins: {
3-
"@tailwindcss/postcss": {
4-
optimize: { minify: false },
5-
},
3+
"@tailwindcss/postcss": {}
64
},
75
}

src/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'tailwindcss';

src/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<script src="https://polyfill.web-cell.dev/feature/ElementInternals.js"></script>
1919

2020
<link href="https://unpkg.com/mdui@2/mdui.css" rel="stylesheet" />
21-
<link type="text/css" href="./index.css" rel="stylesheet" />
2221

2322
<link
2423
href="https://fonts.googleapis.com/icon?family=Material+Icons"
@@ -32,7 +31,7 @@
3231
href="https://fonts.googleapis.com/icon?family=Material+Icons+Round"
3332
rel="stylesheet"
3433
/>
35-
34+
<link rel="stylesheet" src="./index.css" />
3635
<script type="module" src="index.tsx"></script>
3736
</head>
3837

src/page/CompanyList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export class CompanyList
2323
@observable
2424
accessor type: WorkType = '996';
2525

26-
@reaction(function (this: CompanyList) {
27-
return this.type;
28-
})
26+
@reaction(({ type }: CompanyList) => type)
2927
mountedCallback() {
3028
companyStore.getList(this.type);
3129
}

0 commit comments

Comments
 (0)