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

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

$
0
0
I added in stealconfig.js before System.config

  1.     var systemImport = System['import'];
  2.     System['import'] = function(name, options) {
  3.         console.log('import', name, options)
  4.         if(/\.css$/.test(name)) {
  5.             name = name + '!'
  6.         }
  7.         return systemImport.call(this, name, options)
  8.     };
In console I've only this debug output:

import @dev undefined 
import apps/mobile/ undefined (this is main module)
import $css undefined 


Viewing all articles
Browse latest Browse all 3491

Trending Articles