-
-
Save vire/fb8c836f7d8d1173b432b157a1ece431 to your computer and use it in GitHub Desktop.
flow config webpack adjustements to avoid the "Required module not found" for png, css, svg etcc
This file contains 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
# ... | |
[options] | |
# 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' |
This file contains 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
// @flow | |
type CSSModule = { [key: string]: string } | |
const emptyCSSModule: CSSModule = {} | |
export default emptyCSSModule |
This file contains 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
// @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