Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Last active March 22, 2019 11:45
Show Gist options
  • Save Kiwka/1f1a318331ac6c3fc344391ed85f8074 to your computer and use it in GitHub Desktop.
Save Kiwka/1f1a318331ac6c3fc344391ed85f8074 to your computer and use it in GitHub Desktop.
fix for flow error on html loading by adding resolvable extensions
// place this one in the [options] section in your flowconfig
module.name_mapper='^raw-loader!\(.*\.html?\)' -> '\1'
module.file_ext=.html
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment