Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 926 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 926 Bytes

gulp-shopify-sass Build Status

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