gulp-shopify-sass
v0.4.2
Published
Concatenate Sass files defined by the @import order
Downloads
177
Readme
gulp-shopify-sass
Concatenate Sass files defined by the @import order
check this for more info. This plugin does the same thing but with gulp.
Installation
install via npm:
npm install gulp-shopify-sass --save-dev
Example
To import a file called _name.scss
, there are four ways to do it.
@import 'path-to-file/name';
@import 'path-to-file/_name';
@import 'path-to-file/name.scss';
@import 'path-to-file/_name.scss';
All of above will have the same result.
'use strict';
var gulp = require('gulp');
var gss = require('gulp-shopify-sass');
gulp.task('default', function() {
return gulp.src('./*.scss')
.pipe(gss())
.pipe(gulp.dest('./path/to/dist'));
});
License
MIT license