vields-iconset

yarn add vields-iconset

Usage no npm install needed!

<script type="module">
  import vieldsIconset from 'https://cdn.skypack.dev/vields-iconset';
</script>

README

vields-iconset

Project setup

yarn add vields-iconset

Add the icon components to your vue plugin directory ba adding the below text to a file like vields-iconset

import Vue from 'vue'; const requireComponent = require.context( 'vields-iconset/src/components/', true, /^./.*$/, 'sync' ); const components = {};

requireComponent.keys().forEach(fileName => { // Get the component config const componentConfig = requireComponent(fileName); // Globally register the component const component = { name: componentConfig.default.name, file: componentConfig.default }; Vue.component(component.name, component.file); components[component.name] = component.file; }); export default () => { Vue.use(components); };


### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).