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