Middleman using Foundation 6

2019-03-02 14:48发布

I want to use Middleman with wonderful Foundation 6. Here is a repo I've found on Middleman's website.

I have Middleman installed as well as Xcode developers tools. When I run middleman init -T james-weaver/middleman-foundation-6 portfolio in my Terminal I get Unknown Project Template error.

What am I doing wrong here?

1条回答
贪生不怕死
2楼-- · 2019-03-02 15:30

Try to install foundation-sites (v6) at the root of your Middleman project, using NPM:

cd middleman-project
npm init -y
npm install foundation-sites --save

Then, at the file source/stylesheets/site.css.scss, add:

@import '../../node_modules/foundation-sites/scss/foundation';
@include foundation-everything;

It works! Finally, you could look at the file foundation.scss and customize what is loaded by foundation-everything.

查看更多
登录 后发表回答