问题标签 [codekit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
5 回答
3698 浏览

sass - 当我使用 Ruby 2.0 升级到 Mavericks 时,Codekit 无法与 Compass / Zurb Scss 编译器一起使用

CodeKit 给我的错误是

Compass 无法编译项目中的一个或多个文件:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:RUBYOPT 中的非法开关:-E (RuntimeError)

(此操作由对 _settings.scss 的更改触发)

在升级之前它工作正常。

0 投票
2 回答
343 浏览

codekit - 升级到 Mavericks 后的 Codekit Encoding::CompatibilityError

所以我刚刚升级到 Mavericks,现在我的 Codekit Compass 项目之一没有正确编译。我在 Codekit(最新版本)中收到以下错误:

有什么想法吗?有点卡住了。

0 投票
2 回答
1373 浏览

ruby - RUBYOPT 中的非法开关:-E (RuntimeError)

尝试编译我的项目时,我在 codekit 中不断收到此错误,但不知道这意味着什么:

有谁知道如何解决这个问题?

0 投票
1 回答
558 浏览

jquery - Codekit:最好的做法是不要 jHint 部分代码

在 Codekit 中省略一段代码(通过 jHint)检查的最佳方法是什么?

直接的例子是我使用 FlexSlider,当我从教程页面粘贴提供的代码时:http://flexslider.woothemes.com/video.html得到了一堆错误。

我仍然希望我的其余代码是 jHinted,而不是我没有写的东西。

0 投票
0 回答
167 浏览

stylus - 通过网络驱动器实时重新加载

我正在尝试使用 CodeKit、LiveReload 或 grunt watch 来立即查看网络驱动器上文件的更改。我的 Stylus 文件的编译完成大约需要 7 秒,而它们在浏览器中显示需要另外 10-20 秒。

除了将网站移动到本地硬盘之外,还有什么方法可以加快网站的响应速度?

0 投票
1 回答
355 浏览

css - Compass + CodeKit 图像精灵奇怪(错误)

创建 spritesheet CodeKit 时,我有以下 SCSS:

并且 config.rb 将图像文件夹作为“图像”,它工作正常。

但是,当我查看生成的 CSS 时,我得到以下结果,导致 404:

Codekit 或 Compass 正在生成一个额外的“/images/..” - 当我从 CSS 中手动删除它时,它会正确定位 spritesheet,因为它是在 ../images/quiz-s2c8de87230.png 创建

有任何想法吗?

0 投票
3 回答
11427 浏览

sass - 编译 SCSS(指南针)+ 刷新浏览器的最快方法?

只是想知道您认为编译 SCSS 和刷新浏览器的最快方法是什么?我目前正在使用 LiveReload,但有时似乎有点慢,可能需要 1-3 秒。看起来并不多,但我觉得我正在失去正确的编码速度。

你们都用什么?CodeKit 会更快吗?或者可能是 Sublime LiveReload 插件(不是实际的应用程序)?或者也许我应该放弃指南针并使用其他东西?任何建议,将不胜感激。

PS。我在 OS X

0 投票
1 回答
3159 浏览

rvm - codekit 外部指南针编译器路径

我正在研究其他人的项目,该项目是用 wordpress 和带有指南针的基础构建的。我只需要更改一行 css,但是每当我保存 .scss 文件时,Codekit 都会不断抛出“无法编译文件”消息。

我知道这是项目 config.rb 文件中 require 语句的结果,并且 codekit 不能很好地与 rvm 配合使用。解决方案应该是将codekit的高级编译器设置更改为我通过系统文件(/usr/bin/compass)中的命令行安装的compass gem。问题是,当我这样做时,它只会抛出“无法切换编译器”消息。

我是红宝石、宝石、rvm 和命令行东西的菜鸟,所以我不知道我是否在这里遗漏了一些非常明显的东西。任何见解将不胜感激,我迷路了!

0 投票
1 回答
791 浏览

css - Compile one SASS to two css with different config from Compass/Codekit

I want to save one SASS file and output two files with different settings, "output_style" and "environment".

Two methods I've experimented with:

  1. Function in the config.rb file to rerun the compress action on the same SASS file with a different extension, but updates the "output_style" and "environment".

  2. Manually save each of the two SASS files, with something in the top of each file that updates the "output_style" and "environment" variables in the config.rb.

I can do this in Grunt, but I'm thinking it'd be nice to just have CodeKit work.

Options, alternatives?

0 投票
0 回答
139 浏览

css - 压缩/缩小的 css 在 git 中生成空文件

我正在使用 Tower for Mac 来帮助管理我的 git 存储库。我还使用 CodeKit 来缩小和压缩我的 LESS CSS。这会在 repo 中生成看似空白的文件,尽管它们显示了正确的文件大小。我尝试更改.gitattributes以显示这些特定文件binary无济于事。

我做错了什么明显的事情?