Asset Pipeline Undefined Variable SASS

后端 未结 2 1020
春和景丽
春和景丽 2020-12-11 07:42

I\'ve been trying to use http://startbootstrap.com/stylish-portfolio and after downloading all files and copying to the directory I\'m getting the following error on the par

相关标签:
2条回答
  • 2020-12-11 08:09

    Try checking how you are precompiling assets. Check initializers/assets.rb (or it may be environments/production.rb for you) to make sure you are precompiling assets in a friendly way, like this:

    config.assets.precompile += ["*.js", "*.scss", "*.jpg", "*.png"]
    

    I was having this same error when it was

    config.assets.precompile += [/.*\.png/,/.*\.ico/,/.*\.jpg/,/.*\.js/,/.*\.scss/] 
    
    0 讨论(0)
  • 2020-12-11 08:27

    You have to do the following:

    Open your project's font-awesome/less/variables.less or font-awesome/scss/_variables.scss and edit the @fa-font-path or $fa-font-path variable to point to your font directory.

    Source: fontawsome's documentation

    http://fontawesome.io/get-started#custom-less

    0 讨论(0)
提交回复
热议问题