You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried a handful of things, and always get the error Module build failed: Error: Riot parser "css. myparser" is not registered. when including the style type <style type='myparser'>.
Thanks!
The text was updated successfully, but these errors were encountered:
I've updated to webpack 2 so the loader looks different (pre instead of preLoaders for example), but I've also tried both of these ways. According to the docs the compiler (http://riotjs.com/guide/compiler/) should accept either one of these to allow me to transform the css within the functions, but they're never executed. I see them being passed into the riot.compile function though, like expected:
module: {rules: [{enforce: 'pre',test: /\.tag$/,exclude: /node_modules/,loader: 'riotjs-loader',options: {style: 'myparser',parsers: {css: {myparser: function(tagName,css,opts,url){varres=sass.renderSync({data: css})// do work herereturnres.css.toString()}}},parserOptions: {style: function(tagName,css,opts,url){varres=sass.renderSync({data: css})// do work herereturnres.css.toString()}}}}]
Is there any way to add a custom css parser using this loader? For example:
I've tried a handful of things, and always get the error
Module build failed: Error: Riot parser "css. myparser" is not registered.
when including the style type<style type='myparser'>
.Thanks!
The text was updated successfully, but these errors were encountered: