[英]Run grunt task from another gruntfile
I'm trying to figure out how I can watch one of my less
files, and when that file updates, trigger the Gruntfile.js
in /bootstrap
and run it's less
function. 我试图弄清楚如何观看我的
less
文件之一,并且当该文件更新时,在/bootstrap
触发Gruntfile.js
并运行其less
功能。
I'm building something out that requires me to use bootstrap but not disturb anything in the bootstrap folder other than adding one @include
in bootstrap/less/bootstrap.less
, so that I can use bootstraps less variables and functions in style overrides and have all styles in one css file. 我正在构建一些东西,要求我使用bootstrap,但除了在
bootstrap/less/bootstrap.less
添加一个@include
,不要干扰bootstrap文件夹中的任何内容,以便可以在样式覆盖中使用bootstraps少的变量和函数,并具有所有样式都放在一个CSS文件中。
对于那些偶然发现此问题的人,也许此链接可以回答您的问题: 在一个Gruntfile上运行另一个Gruntfile任务
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.