forked from wallabag/wallabag
webpack: handle _global img folder
Fixes missing image files after composer cleaning assets Source of requireAll(): https://stackoverflow.com/a/30652110 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
@ -1 +1,4 @@
|
||||
import './share.scss';
|
||||
|
||||
function requireAll(r) { r.keys().forEach(r); }
|
||||
requireAll(require.context('./img/', true, /\.(jpg|png|gif|svg|ico)$/));
|
||||
|
||||
Reference in New Issue
Block a user