Skip to content

Instantly share code, notes, and snippets.



Forked from MoOx/.flowconfig
Created Mar 9, 2017
What would you like to do?
flow config webpack adjustements to avoid the "Required module not found" for png, css, svg etcc
# ...
# webpack loaders
module.name_mapper='.*\.css$' -> '<PROJECT_ROOT>/flow/stub/css-modules.js'
module.name_mapper='.*\.\(svg\|png\|jpg\|gif\)$' -> '<PROJECT_ROOT>/flow/stub/url-loader.js'
// @flow
type CSSModule = { [key: string]: string }
const emptyCSSModule: CSSModule = {}
export default emptyCSSModule
// @flow
const s: string = ""
export default s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment