1.0.1 • Published 7 years ago

laravel-elixir-selectorshorten v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

laravel-elixir-selectorshorten

This plugin only renames ids with a prefix of id- and classes with a prefix of class-. You can specify more prefixes though the options object.

Install

$ npm install --save-dev laravel-elixir-selectorshorten

Usage

User e.g. to delete intermediary files after elixir version

require('laravel-elixir-selectorshorten');

elixir(function(mix) {
  mix.shorten();
});

Custom usage

Shorten can be called with the following settings:

shorten(options, allowedExtensions)

options

Type: Array

The array with prefix strings.

allowedExtensions

Type: Array

The array with file extensions.