vite-plugin-css-position 2.0.4 → 2.0.5
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 +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,10 +35,10 @@ Add the plugin to your `vite.config.ts`:
|
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
37
|
...
|
|
38
|
-
import {
|
|
38
|
+
import { viteCssPosition } from "vite-plugin-css-position";
|
|
39
39
|
|
|
40
40
|
export default defineConfig({
|
|
41
|
-
plugins: [react(), /* or vue(), */
|
|
41
|
+
plugins: [react(), /* or vue(), */ viteCssPosition()],
|
|
42
42
|
});
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -82,7 +82,7 @@ That's it! Your stylesheets will now be injected at the position of the `<Styles
|
|
|
82
82
|
The plugin accepts optional configuration:
|
|
83
83
|
|
|
84
84
|
```typescript
|
|
85
|
-
|
|
85
|
+
viteCssPosition({
|
|
86
86
|
enableDev: true,
|
|
87
87
|
});
|
|
88
88
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ interface ViteCustomCssPositionOptions {
|
|
|
7
7
|
}
|
|
8
8
|
declare function viteCustomCssPosition(options?: ViteCustomCssPositionOptions): Plugin | Plugin[];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { type ViteCustomCssPositionOptions, viteCustomCssPosition as viteReactCssPosition };
|
|
10
|
+
export { type ViteCustomCssPositionOptions, viteCustomCssPosition as viteCssPosition, viteCustomCssPosition as viteReactCssPosition };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -13,5 +13,5 @@ import e from"vite-plugin-css-injected-by-js";import{hash as t,randomUUID as n}f
|
|
|
13
13
|
window.${a}.set(id, {css, attributes});
|
|
14
14
|
|
|
15
15
|
window.dispatchEvent( new Event('${o}') );
|
|
16
|
-
`}});return[{name:`vite-plugin-custom-css-position`,config(e){return{...e,define:{...e.define,__VITE_CSS_POS_GLOBAL_VAR_NAME__:JSON.stringify(a),__VITE_CSS_POS_EVENT_NAME__:JSON.stringify(o)}}}},...Array.isArray(s)?s:[s]]}export{r as viteReactCssPosition};
|
|
16
|
+
`}});return[{name:`vite-plugin-custom-css-position`,config(e){return{...e,define:{...e.define,__VITE_CSS_POS_GLOBAL_VAR_NAME__:JSON.stringify(a),__VITE_CSS_POS_EVENT_NAME__:JSON.stringify(o)}}}},...Array.isArray(s)?s:[s]]}export{r as viteCssPosition,r as viteReactCssPosition};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|