0.7.1 • Published 4 years ago

grunt-saxicon v0.7.1

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
4 years ago

🎷 grunt-saxicon

npm version License Build Status

grunt-saxicon is a wrapper for saxicon, a module which transforms SVGs into a SASS snippet that allows you to generate colorized SVGs (with both single or multi-colored shapes) within SASS, with each SVG embedded as a data-URI.

Installation

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-saxicon

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-saxicon');

Getting started

Add the following to your Gruntfile.js:

require('load-grunt-tasks')(grunt);
grunt.initConfig({
    saxicon: {
        foo: {
            options: {},
            files: {
                'path/for/output.scss': 'path/to/svgs/*.svg'
            }
        }
    }
});

Then in your SCSS files, import the SCSS output:

@include "path/for/output.scss";

Task options

Options are passed directly to the saxicon module. See the Saxicon Options documentation.

Tests

A smoketest is provided for integration purposes. For comprehensive tests, see the saxicon module.

grunt test
0.7.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.4.0-beta.2

6 years ago

0.3.0

7 years ago

0.3.0-rc.1

7 years ago

0.3.0-beta.4

7 years ago

0.3.0-beta.3

7 years ago

0.3.0-beta.2

7 years ago

0.3.0-beta.1

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

8 years ago