gulp-add-imported-styles
gulp plugin generate style with imports from links array and add it into stream
npm
Install withnpm install gulp-add-imported-styles
Usage
var gulpAddImportedStyles = ; gulp //We have stream with compiled files which include paths of styles in `@import`. F.e.://compiled.styl//@import 'styles/variables.styl';//@import 'styles/mixins.styl';////compiled.sass//@import 'styles/variables.styl';//@import 'styles/mixins.styl';////compiled.css//@import 'styles/main.css'; gulp //We have stream with two extra files. F.e.://some.styl//some.css//... other styles from src stream////main.styl//@import 'stylus/variables.styl';//@import 'stylus/mixins.styl';////main.css//@import 'css/main.css';//@import 'css/extra.css';
API
gulpAddImportedStyles([styles][, options])
styles
Type: Array
Array of styles paths. If not defined then styles will be taken from the stream and will be overridden by compiled files
options
Type: Object
cwd
Type: String
The current working directory in which to search
basename
Type: String
Default: compiled
Output file basename
exclude
Type: Array
Array of excluded file extensions of base stream (if styles
not used). F.e. exclude: ['css']
gulpAddImportedStyles.src(styles[, options])
Create stream from styles array
License
Copyright (c) 2014-2015 Oleg Istomin Released under the MIT license