Skip to content

Media24si/laravel-mix-purge-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purgesvg wrapper for Laravel Mix

A simple Laravel Mix wrapper for PurgeSVG.

Also available as a webpack plugin here.

Installation

npm install --save-dev laravel-mix-purge-svg
yarn add --dev laravel-mix-purge-svg

Config

By default the plugin assumes you have the configuration file purgesvg.js inside your root directory. You can copy the default empty config file from the plugin.

From inside your root application directory run:

cp ./node_modules/laravel-mix-purge-svg/purgesvg.js .

All configuration options can be found here.

Usage

Example webpack.mix.js

let mix = require('laravel-mix');
require('laravel-mix-purge-svg');

mix
  .js('resources/js/app.js', 'public/js')
  .sass('resources/sass/app.scss', 'public/css')
  .purgeSvg()

About

PurgeSVG wrapper for Laravel Mix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published