A require hook for importing asset files in runtime.
Allows files required by node that match a given set of extensions to be returned as either a data URI, or a custom filename. Meant be used in conjunction with file-loader or url-loader when building universal apps.
Using this tool requires Node.js v0.12.x or higher.
$ npm install asset-require-hook
extensions: 'jpg'// const image = require('./icon.jpg');