Skip to content

Commit

Permalink
Fixed normalize.css from npm import bug #51
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Feb 9, 2016
1 parent e23c9a7 commit a43f8eb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
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.

0 comments on commit a43f8eb

Please sign in to comment.