Created
September 12, 2015 13:08
-
-
Save jackcallister/b46592221b4cc1102878 to your computer and use it in GitHub Desktop.
Mocha Local Module CSS Compiler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('babel/register'); | |
// Extend to use css-modules server compiler. | |
// This will resolve JS objects rather than nothing, thus fixing | |
// nested object use - styles.thing.otherThing | |
require.extensions['.css'] = function (module, filename) { | |
return {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mocha --compilers js:path/to/compiler.js