I guess that a Haxe implementation to use this feature would involve a macro that injects the import css statements at the top of the compiled javascript file. Has someone found a way to use this feature in Haxe-generated projects?
This (mostly?) works with bundlers, right? If you’re using webpack, you can do it with haxe too with for example @:keep static var styles = Webpack.require('index.css')