首页 文章

jekyll服务-w不工作

提问于
浏览
0

我刚刚下载了Jekyll来测试sass编译中的“jekyll serve --watch”功能,但它对我不起作用 . “jekyll serve”并没有观察任何事情来调查sass的变化 . 有人有同样的问题吗?

我安装了jekyll 3.0.1,Python 2.7.5,Node 0.10.32,Sass 3.4.19,Compass 0.12.2 .

$ gem install jekyll
$ jekyll new my-awesome-site
$ cd my-awesome-site
/my-awesome-site $ jekyll serve

我的“_config.yml”设置:

# General settings
highlighter: pygments
markdown: kramdown
kramdown:
  input: GFM
sass:
  sass_dir: _sass
  style: :compressed

注意:我试过“jekyll serve”,“jekyll serve -w”和“jekyll serve --watch”,没有用 .

1 回答

  • 2

    我已经探索过你的代码了 . 我无法重现,但似乎有一个bug in Jekyll scss regeneration .

    我的建议是切换到Jekyll的稳定版本 .

    1 - 在你的jekyll网站的根目录下创建一个 Gemfile ,其中包含:

    source 'https://rubygems.org'
    gem 'github-pages'
    

    这将有助于设置一个已知稳定的Github页面环境 .

    2 - 安装捆绑器

    gem install bundle
    

    3 - 安装稳定的宝石

    bundle install
    

    4 - 跑你的Jekull

    bundle exec jekyll serve
    

    如果有效,请告诉我 .

相关问题