Skip to content

Commit ab7e860

Browse files
committed
fix: export style.css instead of style
To prevent ts error.
1 parent 404fe06 commit ab7e860

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
},
4444
"./readme.md": "./readme.md",
4545
"./package.json": "./package.json",
46-
"./style": "./dist/style.css"
46+
"./style": "./dist/style.css",
47+
"./style.css": "./dist/style.css"
4748
},
4849
"typesVersions": {
4950
"*": {

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ npm i mind-elixir -S
122122

123123
```javascript
124124
import MindElixir from 'mind-elixir';
125-
import "mind-elixir/style";
125+
import "mind-elixir/style.css";
126126
```
127127

128128
#### Script tag
@@ -151,7 +151,7 @@ And in your CSS file:
151151

152152
```javascript
153153
import MindElixir from 'mind-elixir'
154-
import "mind-elixir/style";
154+
import "mind-elixir/style.css";
155155
import example from 'mind-elixir/dist/example1'
156156

157157
let options = {
@@ -426,5 +426,5 @@ Thanks for your contributions to Mind Elixir! Your support and dedication make t
426426
- `node.style.fontSize`: use string instead of number which means you should add `px` to the end
427427
- Use `instance.findEl` instead of `MindElixir.E` to get a node element
428428
- CSS file is separated from JS file, you need to import it manually
429-
- If using a bundler with CSS support: `import "mind-elixir/style";`
429+
- If using a bundler with CSS support: `import "mind-elixir/style.css";`
430430
- If using a CDN you can add to your CSS file: `@import "https://cdn.jsdelivr.net/npm/mind-elixir@^5.0.0/dist/style.css";`

0 commit comments

Comments
 (0)