Created
November 19, 2016 01:54
-
-
Save diessica/e6a6ea601d2b19cdcc6881197b6b5c8d to your computer and use it in GitHub Desktop.
require-hacker extensions array
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
import requireHacker from 'require-hacker' | |
const extensions = ['css', 'gif', 'jpg', 'svg'] | |
extensions.forEach(type => { | |
requireHacker.hook(type, () => 'module.exports = ""') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment