【发布时间】:2016-09-15 09:34:47
【问题描述】:
我正在使用 gulp,我有一个问题:
有没有办法在带有 script 和 style 标签的jade文件中编写coffescript和stylus,以将它们编译成三个不同的文件(html、css和js) ?
例如,我想写这样的东西:
h1.foo#bar hello, world!
style
.foo
color $stylusVariable
script
$('#bar').click ->
console.log $(this)
并获取 index.html 和 app.js 和 style.css(其中包含项目中的所有 js 和 css 代码)。你能帮我处理一些必要的插件和 gulp-task 吗?
【问题讨论】:
标签: javascript node.js coffeescript gulp stylus