简体   繁体   中英

Create a Grunt Plugin that embeds other Grunt Plugins

I'm creating a grunt plugin and I'd like to use other existing grunt plugins.

Ie I'd like to embed existing grunt plugins withing my created plugin.


Looking in the code of existing plugins this scenario doesn't seem to be pursued.

Is that scenario have been thought by the Grunt devs?

What would be the right way to implement such embeding?

从我的角度来看,您不应该这样做,这是一种非常糟糕的做法,您可以尝试在package.json声明为依赖项,然后再通过要求和导出任务或您的插件执行任何工作来在插件中进行操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM