Skip to content

Instantly share code, notes, and snippets.

@BigAB
Created February 22, 2016 15:54
Show Gist options
  • Save BigAB/5b2c764c6237e8c0cf79 to your computer and use it in GitHub Desktop.
Save BigAB/5b2c764c6237e8c0cf79 to your computer and use it in GitHub Desktop.
Use includePaths to import bootstrap into your project
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('./'));
});
{
"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"
}
}
@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