laravel-mix-webapp
v1.0.2
Published
Let webpack generate all your favicons and icons for you and inject them into a html file
Downloads
6
Readme
Laravel-mix WebApp
Leverages on Favicons Webpack Plugin and HTML Webpack Plugin to automatically generate your favicons for you and inject them into a HTML file.
Install
npm i laravel-mix-webapp --save-dev
yarn add laravel-mix-webapp --dev
Usage
require('@aschan/laravel-mix-webapp')
mix.webApp({logo: 'src/path-to-logo.svg'})
Options
| option | type | default | description |
|------------|--------|--------------------|---------------------------------------------------------------------|
| logo | string | | The path to the logo from which the favicons will be generated |
| filename | string | webapp.html
| The filename of the HTML file that should get generated |
| outputPath | string | /webicons
| The path to the directory where icons should be placed |
| prefix | string | assets/webicons/
| The path prefix for the generated icon tags |
| favicons | object | {}
| See favicons |