8000 0.3.9 · ulyssear/css-in-js-in-html@b8fb21f · GitHub
[go: up one dir, main page]

Skip to content

Commit b8fb21f

Browse files
Ulysse ARNAUDUlysse ARNAUD
authored andcommitted
0.3.9
1 parent 9212ece commit b8fb21f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ __Older browsers__
111111

112112
1. Import `main.js` in your HTML file
113113
```html
114-
<script src="https://cdn.jsdelivr.net/gh/ulyssear/css-in-js-in-html@0.3.8/build/index.min.js"></script>
114+
<script src="https://cdn.jsdelivr.net/gh/ulyssear/css-in-js-in-html@0.3.9/build/index.min.js"></script>
115115
```
116116

117117
2. Add one line of CSS to hide the page while building (and permits to hide elements with hidden attribute)

build/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.min.js.gz

1 Byte
Binary file not shown.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function init() {
4747
}
4848
const regularExpressions = [
4949
/([a-zA-Z0-9\-,]+)-\[([a-zA-Z0-9 .%#,\-()'"\/]+)\]/g,
50-
/((?:\[[a-zA-Z0-9\-@():>, ]+\]:)*)\{\s*?((?:[a-zA-Z\-]+-\[[a-zA-Z0-9,%. \-()/ ]+\]\s*?)+)\}/g
50+
/((?:\[[a-zA-Z0-9\-@():>,+ ]+\]:)*)\{\s*?((?:[a-zA-Z\-]+-\[[a-zA-Z0-9,%. \-()/ ]+\]\s*?)+)\}/g
5151
];
5252
for (const element of elements) {
5353
const matches = element.className.matchAll(regularExpressions[1]);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@ulyssear/css-in-js-in-html",
3-
"version": "0.3.8",
3+
"version": "0.3.9",
44
"description": "CSS-in-JS-in-HTML is a library that allows you to use CSS-in-JS with HTML only.",
55
"main": "build/index.js",
66
"scripts": {
77
"tests": "echo \"Error: no test specified\" && exit 1",
88
"compress": "node scripts/compress.js",
9-
"build": "npm run compress && esbuild index.js --bundle --outfile=build/index.min.js --minify"
9+
"build": "esbuild index.js --bundle --outfile=build/index.min.js --minify && npm run compress"
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)
0