gorriecoe / laravel-elixir-selectorshorten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:JavaScript 100.0%