Add include paths for bootstrap sass and avoid to import an entire path
authorChocobozzz <florian.bigard@gmail.com>
Fri, 4 Dec 2015 15:17:46 +0000 (16:17 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 4 Dec 2015 15:17:46 +0000 (16:17 +0100)
in the sass file

Gruntfile.js
public/stylesheets/index.scss

index 028a7773d392903958837661610d6a485a047481..51ac10161c95605e2a23b20f16601e80e15b855a 100644 (file)
@@ -70,6 +70,9 @@ module.exports = function (grunt) {
       }
     },
     sass: {
+      options: {
+        includePaths: [ 'node_modules/bootstrap-sass/assets/stylesheets/' ]
+      },
       dev: {
         files: {
           'public/stylesheets/global.css': paths.scss
index 5dbb5e85aa1257a1a834619fd0d495a4cc67077e..16f2ae88f568cc94a29bd952494d7c0a5e5bf1a9 100644 (file)
@@ -1,6 +1,6 @@
 $icon-font-path: "/stylesheets/vendor/fonts/bootstrap/";
 
-@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
+@import "_bootstrap";
 
 body {
     padding: 20px;