pangea-lib 1.17.4 → 1.17.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pangea
2
2
 
3
- ## Setup
3
+ ## Installation
4
4
 
5
5
  Install the following packages in your project with npm or yarn:
6
6
 
@@ -8,10 +8,9 @@ Install the following packages in your project with npm or yarn:
8
8
  1. yarn add pangea-lib
9
9
  2. yarn add pinia
10
10
  3. yarn add pinia-plugin-persistedstate
11
- 3. yarn add pinia-plugin-persistedstate
12
11
  ```
13
12
 
14
- In the main file:
13
+ In the `main` file:
15
14
 
16
15
  ```javascript
17
16
  import { createApp } from 'vue';
@@ -21,6 +20,8 @@ import { createPinia } from 'pinia';
21
20
  import { createPersistedState } from 'pinia-plugin-persistedstate';
22
21
  // pangea
23
22
  import pangea from 'pangea-lib';
23
+ // styles
24
+ import 'pangea-lib/style.css';
24
25
 
25
26
  // create app
26
27
  const app = createApp(App);
@@ -33,3 +34,21 @@ app.use(pangea);
33
34
  // mount
34
35
  app.mount('#app');
35
36
  ```
37
+
38
+ If you want to use Stylus helpers, in `vite.config`:
39
+
40
+ ```javascript
41
+ import { defineConfig } from 'vite';
42
+
43
+ export default defineConfig({
44
+ css: {
45
+ preprocessorOptions: {
46
+ stylus: {
47
+ additionalData: `
48
+ @import "pangea-lib/src/styles/index.styl";
49
+ `,
50
+ },
51
+ },
52
+ },
53
+ });
54
+ ```