【发布时间】:2017-01-08 16:51:26
【问题描述】:
我加入了一个非盈利的开源项目,想帮忙一点,但我不熟悉 Grunt。我做了一些研究,但无法弄清楚为什么配置不起作用。
这是我正在尝试使用的插件。它允许应用多个后处理器,但我现在只需要 Autoprefixer: https://github.com/nDmitry/grunt-postcss
配置:
-
Gruntfile.jshttp://pastebin.com/4Ud0sa1W -
grunt/concurrent.jshttp://pastebin.com/Satr1wSK -
grunt/sass.jshttp://pastebin.com/rc6evWas -
grunt/watch.jshttp://pastebin.com/eGBpFSLs
任务执行没有问题:
laptop:website lextoc$ grunt sass:postcss
Running "sass:postcss" (sass) task
Done.
但是 css 文件没有获得所需的供应商前缀,我正在使用 display: flex 来检查它是否有效。
可以在这里找到原始项目(我分叉了它): https://github.com/faforever/website
【问题讨论】:
标签: javascript node.js gruntjs postcss autoprefixer