Created
September 16, 2019 10:55
-
-
Save gurix/55dc2b03b0a4e93b671db2fe44f31235 to your computer and use it in GitHub Desktop.
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
const images = require.context('../images') | |
const state = { | |
images: images.keys().map(function(name) { | |
return({ | |
name: name, | |
path: images(name,true) | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment