Jekyll site fails only when pushed to GitHub

前端 未结 2 851
春和景丽
春和景丽 2021-01-14 03:14

I am developing a new version of a static website with Jekyll that deployed via Github pages: https://devcampy.com

The repository: https://github.com/gianarb/devcamp

相关标签:
2条回答
  • 2021-01-14 03:59

    The error is telling what the problem is. You have this on the line in main.scss

    @import "bootstrap/scss/bootstrap";
    

    So this means the file may exist locally but is not able to import on your deploy since it's not there.

    Looking at your repo I see you have bootstrap located here:

    node_modules/bootstrap/dist/css/bootstrap.min.css
    

    So try this instead:

    @import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
    // or you could try
    @import "../node_modules/bootstrap/scss/bootstrap.scss"
    

    I would think one of those should work.

    0 讨论(0)
  • 2021-01-14 04:10

    Your current bootstrap code is incomplete. /node_modules/bootstrap/scss/vendor/_rfs.scss is missing because of a .gitignore rule that prevent any vendor folder to be versioned.

    1. In your .gitignore, replace vendor line by vendor/bundle

    2. run npm install bootstrap to override current version

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