gulp-hoist-css-imports

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i gulp-hoist-css-imports

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • w00tmast3r