简体   繁体   English

从另一个gruntfile运行grunt任务

[英]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.

相关问题 引导程序gruntfile。 如何将cssmin任务包含到watch任务中 - Bootstrap gruntfile. How to include cssmin task into watch task 用Grunt编译Bootstrap JS。 调整Gruntfile.js以观察更改 - Compile Bootstrap JS with Grunt. Adjust Gruntfile.js to watch for changes 将自定义引导程序构建集成到项目grunt任务中 - Incorporate custom bootstrap build into project grunt task 引导程序:无法烦恼地运行服务器 - Bootstrap: Can't get grunt to run the server Bootstrap CSS无法完成grunt-recess皮棉任务(noOverqualifying) - Bootstrap css fails grunt-recess lint task (noOverqualifying) Grunt错误-警告:未找到任务“ bower-install” - Grunt Error - Warning: Task “bower-install” not found 我的grunt-recess任务无法正确编译 - My grunt-recess task won't compile properly 如何使用grunt,http服务器在localhost中运行引导程序 - How to run bootstrap in localhost using grunt, http-server 通过Grunt安装Bootstrap。 我如何运行npm install - Installing Bootstrap via Grunt. How do I run npm install 在应用程序视图中运行控制器的方法,或从应用程序布局呈现到另一个控制器方法 - run a method of a controller in the application view or render from app layout to another controller method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM