使用Codeigniter进行SASS [英] SASS with Codeigniter

查看:61
本文介绍了使用Codeigniter进行SASS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的codeigniter项目,正在进行/销售了一段时间。我想将SASS集成到其中,但是SASS似乎主要-并非严格-用于轨道。我一直在阅读它,即使有代码点火器的火花可以使用SASS,它也不能很好地支持它的最新版本。

I have a big codeigniter project that has been going on / selling for a while. I want to integrate SASS into it however SASS seems mainly - not strictly - for rails. I have been reading up on it and even though there are sparks for codeigniter that will allow SASS, it does not support recent versions of it very well.

我还没有看到有关如何在codeigniter上实现SASS的说明。有人可以提供一些干净的指示吗?

I have yet to see instructions on how to implement SASS on codeigniter. Anyone can provide some clean instructions please?

谢谢!

推荐答案

Sass和CodeIgniter不需要从这种意义上进行集成。它们是应用程序的独立部分。

Sass and CodeIgniter does not need to be integrated in that sense. They are separate parts of your application.

Sass是Ruby内置的CSS预处理器,但输出只是普通的CSS。您将引用这些CSS文件作为HTML(CodeIgniter视图)并将它们部署到服务器。在开发计算机上,您需要安装Ruby才能运行Sass编译器,仅此而已。

Sass is a CSS pre-processor built in Ruby, but it's output is just normal CSS. It's these CSS files that you will reference is your HTML (CodeIgniter views) and that you will deploy to your server. On your development machine you need to have Ruby installed to run the Sass compiler, but that's it.

这篇关于使用Codeigniter进行SASS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆