These are chat archives for ractivejs/ractive

Dec 2017
Anatoli Radulov
Dec 16 2017 00:23
@fskreuz that actually makes a lot of sense. I never thought of using the component's require() for anything more than JavaScript. But with the help of the Text plugin as you suggested I managed to refactor the code and it is much better now.
The code looks something like this, which is not that bad:
component.exports = { partials: { mypartial: require('text!mypartial.html') }, css: require('text!my.css') }