Requirements:
Initalise:
npm installgrunt
grunt build
This will run a script to minify and optimise the CSS, JS and images used and place them in the export folder.
CSS and JS files will be written to a separate file (named the same) with .min appended to it. The references in the HTML will need to be updated to point to these minified files.
Images will be overwritten with the optimisations.
To update the icons, the icon fonts will need to be re-generated using the IcoMoon service.
- Create a new IcoMoon project and remove any pre-existing sets.
- Click the Import Icons button and locate the
selection.jsonfile in the fonts folder to import. - Choose 'Yes' to import the settings saved.
- Add icons to library by clicking Import Icons again and selecting the icon SVG files.
- Generate font and download. Replace existing icon fonts with the the new ones, and update the
icon.cssfile in the CSS folder. - Replace the old
selection.jsonwith the newly downloaded version.