-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
const html = require('choo/html') | ||
const compile = require('es6-template-strings/compile') | ||
const resolve = require('es6-template-strings/resolve') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bcomnes
Author
Contributor
|
||
const icon = require('../icon') | ||
|
||
const css = require('csjs') | ||
const fs = require('fs') | ||
const path = require('path') | ||
const insert = require('insert-css') | ||
const rawCSS = fs.readFileSync(path.join(__dirname, 'index.css'), 'utf8') | ||
const buttonCSS = css`${rawCSS}` | ||
const compiled = compile(rawCSS) | ||
const buttonCSS = css.apply(null, resolve(compiled, {})) | ||
|
||
insert(css.getCss(buttonCSS)) | ||
|
||
function button (onclick, iconName, disabled) { | ||
|
@bcomnes why more deps? what does this achieve sir?