i have sailsjs project. , need install bootstrap-sass version. using grunt-contrib-sass. need ruby installed? can modify grunt, node-sass responsible compilation?
following example: https://github.com/sails101/using-sass
instead of
grunt-contrib-sass, usegrunt-sassinstead avoid ruby dependency:- yarn:
yarn add grunt-sass - npm:
npm --save grunt-sass
- yarn:
install
bootstrap-sass:- yarn:
yarn add bootstrap-sass - npm:
npm --save bootstrap-sass
- yarn:
assuming you've followed along repo instructions linked above, need add
bootstrap-sassour imports insass.jsconfig:
--
module.exports = function(grunt) { grunt.config.set('sass', { dev: { options: { includepaths: ['node_modules/bootstrap-sass/assets/stylesheets'] }, files: [{ expand: true, cwd: 'assets/styles/', src: ['importer.scss'], dest: '.tmp/public/styles/', ext: '.css' }] } }); grunt.loadnpmtasks('grunt-sass'); }; - now can
@import "bootstrap"in our sass.
Comments
Post a Comment