riotjs-loader
riotjs-loader copied to clipboard
setup coffescript html parsing
Hi @esnunes do you know how to tweak this in webpack config? This works when I add this to riotjs-loader https://github.com/muut/riotjs/issues/751
riot.parsers.js.coffeescript = riot.parsers.js.coffee;
return riot.compile(content, options);
I need to parse html with this type
<script type="text/coffeescript">
@test = 'riotjs awesome'
</script>
Try adding query: { type: "coffee" }
to your definition.
For example:
preLoaders: [
{ test: /\.tag/, loader: "riotjs", query: { type: "coffee" } }
]