Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2020-12-09 22:27:19 +0300
committerGitHub <noreply@github.com>2020-12-09 22:27:19 +0300
commit03d6dae9c748d421526a35dc970b2d68310e4013 (patch)
tree8d470be1672ed8ada2db7e3e7ee6f64869018f85 /.fantasticonrc.js
parent83ababc39a7e5ec83d176bc08d92bc10ff800e6b (diff)
Use fantasticon to generate web fonts (#515)
* Generate webfonts via fantasticon - Includes new docs section and fonts page - Generates CSS and JSON in addition to 4x font types - Adds new script and hooks into existing icons and zip scripts * casing * Update to drop ttf and eot for woff and woff2 only for now * remove eot and ttf there too * simplify stylelint
Diffstat (limited to '.fantasticonrc.js')
-rw-r--r--.fantasticonrc.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/.fantasticonrc.js b/.fantasticonrc.js
new file mode 100644
index 000000000..3445d657a
--- /dev/null
+++ b/.fantasticonrc.js
@@ -0,0 +1,30 @@
+module.exports = {
+ inputDir: './icons', // (required)
+ outputDir: './font', // (required)
+ fontTypes: ['woff', 'woff2'],
+ assetTypes: ['css', 'json', 'html'],
+ name: 'bootstrap-icons',
+ prefix: 'bi',
+ selector: '.bi',
+ fontsUrl: './fonts',
+ formatOptions: {
+ json: {
+ // render the JSON human readable with two spaces indent (default is none, so minified)
+ indent: 2
+ }
+ },
+ // Use a custom Handlebars template
+ templates: {
+ css: './src/css.hbs',
+ html: './src/html.hbs'
+ },
+ pathOptions: {
+ json: './font/bootstrap-icons.json',
+ css: './font/bootstrap-icons.css',
+ html: './font/index.html',
+ ttf: './font/fonts/bootstrap-icons.ttf',
+ woff: './font/fonts/bootstrap-icons.woff',
+ woff2: './font/fonts/bootstrap-icons.woff2',
+ eot: './font/fonts/bootstrap-icons.eot'
+ }
+};