Last active
September 15, 2016 11:01
-
-
Save gotbahn/dd2cbcaa18df13ef3de06e272234c5d3 to your computer and use it in GitHub Desktop.
0.1 Loading dynamic images with Webpack
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
| const pathToCat = require('./path/to/cats/grumpy-cat.png'); | |
| const getCat = () => `<img src='${pathToCat}' alt='Grumpy Cat' />`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment