Skip to content

Commit a025e38

Browse files
authored
feat: virtual-insert-func - README update
- Updated `insert` feature docs to reflect latest change of where rollup now outputs the 'insertStyle' module into a non-conflicting directory on build (e.g., 'dist/_virtual', etc).
1 parent c4216a0 commit a025e38

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,6 @@ sass({
9090
});
9191
```
9292

93-
**Note:**
94-
95-
In this current version of the library the utility function responsible for injecting style chunks into the page's head is output to `./dist/node_modules/...` (depending on the build tool you're using) when using rollup-plugin-sass's `insert` feature.
96-
97-
Due to this some caveats come up:
98-
99-
1. If you're bundling an app:
100-
- Ensure the `./{target-dist}/**/node_modules**/insertStyle.js` file (or it's parent dirs) is/are not excluded via your build tools (rollup, webpack, etc.).
101-
2. If you're publishing an app:
102-
- Ensure the `./{target-dist}/**/node_modules**/insertStyle.js` is not listed in relevant `.*ignore` files.
103-
- Ensure the file is listed in [`package.json.files`](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files) field.
104-
- Optionally, if you're using typescript, you can list the file in your `*tsconfig*`.
105-
10693
### `processor`
10794

10895
- Type: `Function`

0 commit comments

Comments
 (0)