We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4877b6 commit 2ef0f18Copy full SHA for 2ef0f18
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@idrinth-api-bench/rollup-plugin-react-modular-css",
3
- "version": "1.2.2",
+ "version": "1.2.3",
4
"description": "Provides a plugin to split css files out separately.",
5
"main": "src/index.js",
6
"repository": {
src/load.ts
@@ -1,7 +1,9 @@
export default (hash: string, name: string) => {
const global = window || this || {};
const header = global.document.getElementsByTagName('head')[0];
- const path = `/assets/${name}-${hash}.min.css`;
+ // @ts-ignore
+ const prefix= import.meta.env.BASE_URL ?? '';
+ const path = `${prefix}/assets/${name}-${hash}.min.css`;
7
if (global.document.querySelector(`link[href='${ path }']`)) {
8
return;
9
}
0 commit comments