git ssb

16+

Dominic / patchbay



Tree: 51790a95381555fd47ee87374d11c418ee6e028a

Files: 51790a95381555fd47ee87374d11c418ee6e028a / app / styles / css / font-awesome.js

650 bytesRaw
1const nest = require('depnest')
2const fs = require('fs')
3const { join } = require('path')
4const { assign } = Object
5
6// const css = fs.readFileSync(join(__dirname, '../../../node_modules/font-awesome/css/font-awesome.min.css'), 'utf8')
7const css = fs.readFileSync(join(__dirname, '../../../node_modules/font-awesome/css/font-awesome.css'), 'utf8')
8 .replace(/\.{2}/g, '../font-awesome')
9
10// TODO: for patchlite, may have to convert font urls into url(data:base64: ....) format
11
12exports.gives = nest('styles.css')
13
14exports.create = function (api) {
15 return nest('styles.css', (sofar = {}) => {
16 return assign(sofar, { fontAwesome: css })
17 })
18}
19
20

Built with git-ssb-web