Last active
January 21, 2019 16:52
-
-
Save shapkarin/9dfd9304110c8d08205e9ebc2258eb1b to your computer and use it in GitHub Desktop.
import all files from folder with webpack
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 modules = require.context('path/to/folder', false, /\.type$/); | |
modules.keys().forEach(modules); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment