Skip to content

theJian/gulp-shopify-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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