【问题标题】:CodeIgniter 3.0 with Foundation 5CodeIgniter 3.0 与 Foundation 5
【发布时间】:2015-06-22 06:05:38
【问题描述】:

我正在使用 CodeIgniter 3.0 和 Foundation 5。我最近还安装了 SASS/SCSS 和 Compass,以便更轻松地使用 Foundation。

我想知道它们可以一起使用吗?基础 CLI 构建了一个包含所有内容的新目录,但我有一个现有的 CI 项目我想将其集成。

【问题讨论】:

  • Codeigniter 是 PHP 框架,Foundation 5 与 CSS 相关!它们不相关,是的,您可以
  • 我知道这一点,但我在问如何将 Foundation 的 SCSS 与 CodeIgniter 一起使用,我已经知道它编译静态 CSS。但是,我不确定如何将它们一起使用。基础:|- bower_components |- js |- scss |- 样式表并在您更新 *.scss 文件时使用 compass watch,它会更新/编译静态 CSS 文件。我对如何将它与 CI 结构集成有点困惑。 - 哎呀,好像换行符被删除了

标签: codeigniter sass zurb-foundation


【解决方案1】:

我通过在 CodeIgniter 中添加一个空的 compass 项目来解决这个问题,然后将 Foundation scssbower_components 目录复制到我的源目录中。然后将 add_import_path src/bower_components/foundation/scss 添加到 config.rb 以允许导入 Foundation SCSS。

# Require any additional compass plugins here.
add_import_path "src/bower_components/foundation/scss"

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "src/css"
sass_dir = "src/sass"
images_dir = "images"
javascripts_dir = "src/js"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-13
    • 2013-12-09
    • 1970-01-01
    相关资源
    最近更新 更多