gulp-hoist-css-imports
v1.0.2
Published
Hoist css imports to the beginning of the file
Downloads
2
Readme
gulp-hoist-css-imports
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.