assemble / assemble-boilerplate-bootstrap

Build Bootstrap with Assemble instead of Jekyll.

Home Page:http://assemble.github.io/boilerplate-bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Less error when running `grunt`

doowb opened this issue · comments

I followed the instructions in the readme and I get the folllowing error during the less build:

Running "less:site" (less) task
>> FileError: 'mixins/hide-text.less' wasn't found in theme/utils/mixins.less on line 5, column 1:
>> 4 // Utilities
>> 5 @import "mixins/hide-text.less";
>> 6 @import "mixins/opacity.less";
Warning: Error compiling theme/site.less Use --force to continue.

Aborted due to warnings.

Update:

I added a line to copy the vendor/bootstrap/less/mixins folder to `theme/mixins' and it started working but I'm not sure if that's all I need to do (or if there's something else I should do)

k I'll take a look in a few

I have the same issue. Was there more to this than just copying the folder or a certain configuration step missing?

I updated the grunt config starting at line 122 with the following and I think that fixed everything. Some of the pathing is wrong for the vendor/bootstrap files and was missing a directive to copy over the mixing folder as @doowb noted.

      assets: {
        files: [
          {expand: true, cwd: '<%= bootstrap %>/docs/examples', src: ['**/*.css', '**/*.{jpg,png,gif}'], dest: '<%= site.dest %>/examples/'},
          {expand: true, cwd: '<%= bootstrap %>/docs/assets', src: ['**'], dest: '<%= site.assets %>/'},
          {expand: true, cwd: '<%= bootstrap %>/docs/_data', src: ['**'], dest: '<%= site.data %>/'},
          {expand: true, cwd: '<%= bootstrap %>/dist', src: ['**'], dest: '<%= site.assets %>/'},
        ]
      },
      update: {
        files: [
          {expand: true, cwd: '<%= bootstrap %>/less', src: ['*', '!{var*,mix*,util*}'], dest: '<%= site.theme %>/bootstrap/'},
          {expand: true, cwd: '<%= bootstrap %>/less', src: ['{util*,mix*}.less'], dest: '<%= site.theme %>/utils'},
          {expand: true, cwd: '<%= bootstrap %>/less/mixins', src: ['**'], dest: '<%= site.theme %>/mixins'},
          {expand: true, cwd: '<%= bootstrap %>/less', src: ['variables.less'], dest: '<%= site.theme %>/'},
        ]
      }

I had the same problem, and I fixed installing GIT in OpenSuse