Ionic的默认gulp文件如何与其cli工具相关联? [英] How does Ionic's default gulpfile relate to its cli tool?
问题描述
目前,我正在使用带有 ionic serve
的Chrome浏览器运行应用仿真。我也看到有一个与框架相关的gulpfile.js。离子和gulp之间的关系是什么?
您可以在 上面的链接文档给出的例子是: ionic.project $中添加一个
gulpStartupTasks
属性
<$ p
$ b $ name b
$ $ b
在这种情况下,执行 watch
gulp任务运行 $ ionic serve
。
如果运行 Currently, I am running the app emulation using the Chrome browser with Have a look at: https://github.com/driftyco/ionic-cli#advanced-serve-options (see "Gulp Integrations"). You can add a They example the above linked documentation gives is: In this case, the If you run 这篇关于Ionic的默认gulp文件如何与其cli工具相关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! $ ionic setup sass
,它会将配置添加到
ionic.project
中。一旦你明白了这一点,只要你理解了一口气,你就会很开心。 ionic serve
. I also see that there is a gulpfile.js associated with the framework. What is the relationship between ionic and and gulp?gulpStartupTasks
property in the ionic.project
file located in your project root.{
"name": "SmoothRiders",
"gulpStartupTasks": [
"watch"
]
}
watch
gulp task is executed when you run $ ionic serve
.$ ionic setup sass
, it will add the configuration to your ionic.project
. Once you understand that, you're good to go so long as you understand gulp.