Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup coffescript html parsing #5

Open
blahutka opened this issue May 20, 2015 · 1 comment
Open

setup coffescript html parsing #5

blahutka opened this issue May 20, 2015 · 1 comment

Comments

@blahutka
Copy link

Hi @esnunes do you know how to tweak this in webpack config?
This works when I add this to riotjs-loader riot/riot#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>
@chaucerbao
Copy link

Try adding query: { type: "coffee" } to your definition.

For example:

preLoaders: [
    { test: /\.tag/, loader: "riotjs", query: { type: "coffee" } }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants