Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Last active September 15, 2016 11:01
Show Gist options
  • Select an option

  • Save gotbahn/dd2cbcaa18df13ef3de06e272234c5d3 to your computer and use it in GitHub Desktop.

Select an option

Save gotbahn/dd2cbcaa18df13ef3de06e272234c5d3 to your computer and use it in GitHub Desktop.
0.1 Loading dynamic images with Webpack
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