1.0.2 • Published 8 years ago

gulp-hoist-css-imports v1.0.2

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

gulp-hoist-css-imports

JavaScript Style Guide

A simple gulp plugin that moves CSS imports to the top of the file, wherever they may be located. This plugin was written to address the issue of CSS concatenation not producing valid CSS, but feel free to use this plugin if you just don't care where you put your imports ¯\(ツ)

Usage

hoistCssImports(options)

options.matcher

Default: /@import .*?;/g

The regex matching import statements. The default suits most use cases, but feel free to change this to match other CSS constructs.

options.delimiter

Default: ''

The delimiter appended to each import statement.