Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
dist/
release/
*.log
src/scss/foundation/_normalize.scss
1 change: 1 addition & 0 deletions bin/normalize.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "inuit-normalize";
21 changes: 17 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,27 @@ var processors = [
})
];

/**
*
* Copy the normalize.css
*
*/
gulp.task( 'normalize', function() {
return gulp.src( 'bin/normalize.scss' )
.pipe( sass( {
importer: moduleImporter(),
outputStyle: 'expanded'
} ) )
.pipe( rename( '_normalize.scss' ) )
.pipe( gulp.dest( 'src/scss/foundation/' ) )
} );

/**
*
* Sass to CSS
*
*/
gulp.task( 'sass', function() {
gulp.task( 'sass', ['normalize'], function() {
return gulp.src( 'src/scss/**/*.scss' )
.pipe( sass( {
importer: moduleImporter(),
Expand All @@ -40,8 +55,6 @@ gulp.task( 'sass', function() {
.pipe( gulp.dest( 'dist/css/' ) );
} );

gulp.task( 'sass:build', ['sass'] );

/**
*
* Browsersync.
Expand Down Expand Up @@ -69,7 +82,7 @@ gulp.task( 'watch', function() {
gulp.watch( ['src/**/*.scss'], ['build'] );
} );

gulp.task( 'build', ['sass:build'], function() {
gulp.task( 'build', ['sass'], function() {
return gulp.src(
[
'dist/**'
Expand Down
1 change: 0 additions & 1 deletion src/scss/foundation/_normalize.scss

This file was deleted.