yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 157 forks source link

Compass:Server Error on Initial Install #315

Closed caseybaggz closed 9 years ago

caseybaggz commented 9 years ago

After running yo backbone and selecting all the configuration options to include in the build - the build scaffolds with no errors. But, when running grunt serve, I get a compass:server error that states:

Error: invalid option:  --import-path-app/bower_components
Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]
Description: compile project at path specified or the current director if not specified
caseybaggz commented 9 years ago

So, I was able to fix this by deleting the importPath: '<%= yeoman.app %>/bower_components', from the compass task in the Gruntfile.js.

Because I did this, I had to correct the import statement in the main.scss file to @import '../bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap.scss'; .

NOTICE THE `` ADDED TO THE BOOTSTRAP.SCSS FILE_ I feel like this is a better approach anyways because it matches the path to the fonts.