UNPKG
sheetify
Version:
beta (8.0.0-beta.0)
latest (8.0.0)
8.0.0
8.0.0-beta.0
7.4.0
7.3.3
7.3.2
7.3.1
7.3.0
7.2.0
7.1.0
7.0.0
6.2.0
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.2.0
5.1.2
5.1.1
5.1.0
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.1.2
4.1.1
4.1.0
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.3.3
3.3.2
3.3.1
3.3.0
3.2.0
3.1.0
3.0.1
3.0.0
2.0.3
2.0.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
Modular CSS bundler
github.com/stackcss/sheetify
stackcss/sheetify
sheetify
/
example
/
index.js
13 lines
(11 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
sheetify =
require
(
'sheetify'
)
const
domify =
require
(
'domify'
)
const
prefix =
sheetify
(
'./index.css'
)
document
.
body
.
appendChild
(
domify
(
` <div class="
${prefix}
"> <h1>Styled</h1> </div> <div> <h1>Unstyled</h1> </div> `
))