Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : steal: css! (exclamation mark of css) problem

$
0
0
You could write an extension on translate that would fix it, however it won't work with ES6 syntax. If you're just using steal syntax it would probably work.  Untested but it would be something like this:

  1. var loaderTranslate = System.translate;
  2. System.translate = function(name, parentName, parentAddress) {
  3.   if(name.indexOf('.css') > 0) {
  4.     name = name + "!";
  5.   }

  6.   return loaderTranslate.call(this, name, parentName, parentAddress);
  7. };

Something like that, play around with it.

Viewing all articles
Browse latest Browse all 3491

Trending Articles