From 0252cdf1487636e199f81f2fce17159a38a489d2 Mon Sep 17 00:00:00 2001 From: Arjen Smit Date: Tue, 2 Aug 2016 10:20:22 +0200 Subject: [PATCH 1/2] remove information about requirements, as these requirements where dropped a while back --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index ffa1115..f9a1342 100644 --- a/README.md +++ b/README.md @@ -153,14 +153,6 @@ Example configuration: With the task inline-images you can create a 'sprite' of inline css images. The task generates an scss file with the inline-image($name) mixin and .inline-image-* css classes. -Make sure the following packages are available: - -```json - "gulp-add-src": "^0.2.0", - "gulp-concat": "^2.5.2", - "gulp-image-data-uri": "^1.2.1", -``` - Example configuration of config.json: ```json From 5f4d322a947e5ba6e13c30ea05102f4599b06af4 Mon Sep 17 00:00:00 2001 From: Arjen Smit Date: Tue, 2 Aug 2016 10:21:19 +0200 Subject: [PATCH 2/2] add information about installing the icons task --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index f9a1342..dde2ca5 100644 --- a/README.md +++ b/README.md @@ -163,3 +163,24 @@ Example configuration of config.json: } ``` +## icons task + +With the icons tasks it's possible to convert a set of svg's to a font family. The result is a folder with fonts and an scss file with variables and mixins that can be used to use it in your project. + +Example configuration: + +```json +"icons": { + "src": [ + "icons/*.svg" + ], + "formats": ["ttf", "eot", "woff", "svg", "woff2"], + "dest": "web/assets/fonts/", + "webpath": "/assets/fonts/" + }, +``` + +- `src` the path to the source svg's. +- `formats` (not required) but can be used to overwrite the font types that are generated (ttf, eot, woff, svg, woff2 is the default). +- `dest` the path on the disk where the font will be placed +- `webpath` the path used by the browser to request the fonts \ No newline at end of file