icons
feature
Fancy icons using a svg sprite file and use
element with polyfill for IE11 and below.
Usage
See demo page.
Global dependencies
Installation
Install this package with sackmesser:
make feature-install-icons
or when sackmesser is not used:
yarn install gi-feature-icons
After the installation has completed, you can import the module files:
JS:
// import icon feature and icon manager var icons = svgJsonFile: 'assets/icons.json' svgSpriteFile: 'assets/icons.svg' icons
Make sure you provide the global dependencies in your webpack config file:
base: 'gi-js-base'
Styles:
Browser compatibility
- Newest two browser versions of Chrome, Firefox, Safari and Edge
- IE 10 and above
Development
make build
ornpm run build
- Build production version of the feature.make dev
ornpm run dev
- Build demo of the feature, run a watcher and start browser-sync.make test
ornpm run test
- Test the feature.make jsdoc
- Update documentation inside thedocs
folder.make publish
- Publish npm package.