0
有没有办法在输出中包含一个.js文件https://github.com/indieisaconcept/grunt-styleguidehttp://jacobrask.github.com/styledocco/?Grunt任务styleguide styledocco
我有一个将我的CSS编译成一个HTML文件的咕task任务,但我也想包含一个脚本。
有没有办法在输出中包含一个.js文件https://github.com/indieisaconcept/grunt-styleguidehttp://jacobrask.github.com/styledocco/?Grunt任务styleguide styledocco
我有一个将我的CSS编译成一个HTML文件的咕task任务,但我也想包含一个脚本。
您可以将它添加到default template或您自己的。
我的用例是人们会下载我的CSS进行修改并在styleguide中查看它们(因此styleguide更像是一个dev依赖项来查看修改等)。我在一天前找到了答案,您只需将它添加到Grunt任务'选项:{include:['yourfile1.js','yourfile2.js']}'之后,告诉它哪些文件需要编译。奇怪的是,如果你给它只有一个文件,包括该文件将包括每个实际编译的文件一次(至少这是我注意到的行为) – andrei
我相信,这适用于KSS,但不适用于styledocco。没有通过咕噜声做的styledocco有一个 - 包括参数 – morewry