Closed elsasslegend closed 7 years ago
This plugin provides a fetch hook that returns an empty string, which should just be interpreted as an empty module in the loader.
What loader are you using here? Ensure that it can support a plugin like that.
I'm using System.JS as Loader, it should work. I notice that the module format returned by url/of/CSS/file.css!url/of/plugin.js is set to 'register'. Is this normal ?
Found the Problem, another Meta declaration was overriding *.JS files to use 'register' as module format. Removed it and now it works. Thanks !
When using css plugin, I get at run time the following error :
The file where I'm loading the css from contains the following code (Typescript) viewmodel.js
which transpiles to
The config.js looks like this :
I cannot figure out what is the problem, since my configuration seems to be good. Am I missing something ? Is it possible that the loader plugin must be specified as "cjs" format ?
Thanks for your help :)