Created
February 22, 2016 15:54
-
-
Save BigAB/5b2c764c6237e8c0cf79 to your computer and use it in GitHub Desktop.
Use includePaths to import bootstrap into your project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
gulp.task('style', function() { | |
return gulp.src('style.scss') | |
.pipe(sass({ | |
includePaths: ["node_modules/bootstrap/scss"] | |
})) | |
.pipe(gulp.dest('./')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "new-sass-spike", | |
"version": "0.0.1", | |
"description": "Just showing how to use the scss files from new bootstrap", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "gulp style" | |
}, | |
"keywords": [], | |
"author": "BigAB <bigab@live.ca> (bigab.net)", | |
"license": "MIT", | |
"dependencies": { | |
"bootstrap": "^4.0.0-alpha.2", | |
"gulp": "^3.9.1", | |
"gulp-sass": "^2.2.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "bootstrap"; | |
body { | |
box-sizing: border-box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment