git ssb

16+

Dominic / patchbay



Tree: cc1af9dac3bb37125de4be75e5055344960e9675

Files: cc1af9dac3bb37125de4be75e5055344960e9675 / 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