Files: 109a8e516aa40324eb7ee406afb7d35b0d0be031 / app / styles / css / font-awesome.js
650 bytesRaw
1 | const nest = require('depnest') |
2 | const fs = require('fs') |
3 | const { join } = require('path') |
4 | const { assign } = Object |
5 | |
6 | // const css = fs.readFileSync(join(__dirname, '../../../node_modules/font-awesome/css/font-awesome.min.css'), 'utf8') |
7 | const 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 | |
12 | exports.gives = nest('styles.css') |
13 | |
14 | exports.create = function (api) { |
15 | return nest('styles.css', (sofar = {}) => { |
16 | return assign(sofar, { fontAwesome: css }) |
17 | }) |
18 | } |
19 | |
20 |
Built with git-ssb-web