You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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).
Copy file name to clipboardExpand all lines: README.md
-13Lines changed: 0 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -90,19 +90,6 @@ sass({
90
90
});
91
91
```
92
92
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*`.
0 commit comments