Skip to content

Commit 18ed65c

Browse files
committed
version 1.0.4
1 parent e84ce35 commit 18ed65c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/rollup-plugin-react-modular-css",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Provides a plugin to split css files out separately.",
55
"main": "src/index.js",
66
"repository": {

src/load.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const global = window || this || {};
2-
const header = global.document.getElementsByTagName('header')[0];
31
export default (hash: string, name: string) => {
2+
const global = window || this || {};
3+
const header = global.document.getElementsByTagName('header')[0];
44
const path = `/assets/${name}-${hash}.min.css`;
55
if (global.document.querySelector(`link[href='${ path }']`)) {
66
return;

0 commit comments

Comments
 (0)