laravel-mix-purge-svg

2.0.0 • Public • Published

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()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i laravel-mix-purge-svg

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • neoglyph
  • bostjanob