草庐IT

grunt-uncss

全部标签

ruby - 如何告诉 grunt 在本地 node_modules 中寻找模块?

我尝试运行compass任务:»gruntcompass:distRunning"compass:dist"(compass)taskrbenv:compass:commandnotfoundThe`compass'commandexistsintheseRubyversions:1.9.3-p448Warning:YouneedtohaveRubyandCompassinstalledandinyoursystemPATHforthistasktowork.Moreinfo:https://github.com/gruntjs/grunt-contrib-compassUse--fo

ruby - 从 Font-Awesome-Sass gem 中获取字体,复制到 grunt compass 输出目录中

我已经成功安装了“font-awesome-sass”ruby-gem,并通过“require”-property将其包含在compassgunt-config中,并通过“import”-rule将其包含在我的scss中。所以font-awesomescss被编译到我的output-css文件中,这到目前为止有效。我现在的问题是:如何将字体文件(.woff、.otf、..)从ruby​​-gem获取到我的grunt输出目录中。这些文件已在位于“../css/fonts/”目录中的output-css中被引用,但它们不会被自动复制。我错过了什么吗? 最佳答案

ruby - 生成源映射时出错 - grunt 和 sass 配置

我正在尝试将sass与grunt一起使用。我已经在路径中安装了ruby​​、sass和grunt。版本是,node:0.10.20npm:1.3.11grunt-cli:0.1.13grunt:0.4.5sass:3.4.4我的包json是,"private":true,"devDependencies":{"express":"4.x","grunt":"~0.4.1","grunt-contrib-sass":"~0.3.0","grunt-contrib-watch":"~0.4.4"}我的grunt文件是,module.exports=function(grunt){grunt

ruby - Grunt/Bundler 不会使用指定的 sass 版本

我们有一个使用Grunt和Bundler设置的项目。所有这些都安装没有问题。生成Gemfile.lock,提取正确的gems,并使用npm创建grunt文件。我们开始监视该项目,它在sass编译时爆炸,因为它使用了错误版本的sass而不是gemfile中指定的版本。顺便说一下,这是在Windows上...gem文件source'https://rubygems.org'gem'sass','~>3.2'gem'compass','~>0.12'gem'susy','~>1.0'Gemfile.lockGEMremote:https://rubygems.org/specs:chunky

ruby-on-rails - ruby 中的 Grunt task runner 相当于什么?

Grunt在Node.js环境中自动化任务方面越来越受欢迎。是否有ruby​​(Sinatra)的等效项? 最佳答案 Rake是Ruby中出色的任务运行器。 关于ruby-on-rails-ruby中的Grunttaskrunner相当于什么?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/25147703/

javascript - grunt-concat 分隔符选项?

在这种情况下如何指定分隔符:我以这种方式将我的文件与grunt-concat连接起来:concat:{options:{banner:'',separator:""},dist:{files:{'/public/scripts/ieditor.js':['public/scripts/ieditor/vars.js','public/scripts/ieditor/controllers/*.js','public/scripts/ieditor/directives/*.js','public/scripts/ieditor/app.js','public/scripts/iedit

javascript - grunt-concat 分隔符选项?

在这种情况下如何指定分隔符:我以这种方式将我的文件与grunt-concat连接起来:concat:{options:{banner:'',separator:""},dist:{files:{'/public/scripts/ieditor.js':['public/scripts/ieditor/vars.js','public/scripts/ieditor/controllers/*.js','public/scripts/ieditor/directives/*.js','public/scripts/ieditor/app.js','public/scripts/iedit

node.js - Node 包 ( Grunt ) 已安装但不可用

我正在尝试构建githubjquery-uilibrary使用grunt,但运行npminstall后我仍然无法根据readmefile运行命令.它只是给出Nocommand'grunt'found:james@ubuntu:~/Documents/projects/ad2/lib/jquery-ui$gruntbuildNocommand'grunt'found,didyoumean:Command'grun'frompackage'grun'(universe)grunt:commandnotfoundjames@ubuntu:~/Documents/projects/ad2/li

node.js - Node 包 ( Grunt ) 已安装但不可用

我正在尝试构建githubjquery-uilibrary使用grunt,但运行npminstall后我仍然无法根据readmefile运行命令.它只是给出Nocommand'grunt'found:james@ubuntu:~/Documents/projects/ad2/lib/jquery-ui$gruntbuildNocommand'grunt'found,didyoumean:Command'grun'frompackage'grun'(universe)grunt:commandnotfoundjames@ubuntu:~/Documents/projects/ad2/li

javascript - 让 Grunt 为不同的设置生成 index.html

我正在尝试使用Grunt作为我的web应用程序的构建工具。我想要至少有两个设置:我。开发设置-从单独的文件加载脚本,不连接,所以我的index.html看起来像:...二。生产设置-将我的脚本压缩并连接到一个文件中,相应地使用index.html:问题是,当我运行gruntdev或gruntprod时,如何根据配置使grunt生成这些index.html?或者也许我在挖掘错误的方向,总是生成MyApp-all.min.js但将我的所有脚本(串联)或加载器脚本放入其中会更容易从单独的文件中异步加载这些脚本?你们是怎么做到的,伙计们? 最佳答案