shakacode / bootstrap-loader

Load Bootstrap styles and scripts in your Webpack bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grid-breakpoints now working

grounded-warrior opened this issue · comments

I can't seem to use grid breakpoints in my scss with the following error

@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
        ^
  Undefined operation: "null lt 5".

i have

# Mixins
mixins: true

in my .bootstrap.rc and in my webpack.js i have

    test: /\.s?css$/,
    use: [
      'style-loader',
      'css-loader',
      'postcss-loader',
      'sass-loader',
      {
        loader: 'sass-resources-loader',
        options: {
          resources: [
            './node_modules/bootstrap/scss/_variables.scss',
            './node_modules/bootstrap/scss/_functions.scss',
            './node_modules/bootstrap/scss/mixins/_breakpoints.scss',
          ]
        },
      },
    ],

What am I missing?

Hey. I have the same problem. you could fix it? )

@import
'_custom_bootstrap_vatiables.scss',
'../../bower_components/bootstrap/scss/_functions.scss',
'../../bower_components/bootstrap/scss/_variables.scss',
'../../bower_components/bootstrap/scss/_mixins.scss',
'_header',
'_footer';

I fixed this error. I misspelled breakpoint's name