diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-10-15 23:57:35 +0200 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2017-10-16 00:01:52 +0200 |
commit | 7a1e1247cbc3b7a68c82c45733713c4630e9dcb7 (patch) | |
tree | 0d6a7869fa746e62c3c3b93f50557760fa1f0bd9 /app/Resources/static/themes | |
parent | ef7f187fa8aa18acf68750e5539ccceb524ab598 (diff) | |
download | wallabag-7a1e1247cbc3b7a68c82c45733713c4630e9dcb7.tar.gz wallabag-7a1e1247cbc3b7a68c82c45733713c4630e9dcb7.tar.zst wallabag-7a1e1247cbc3b7a68c82c45733713c4630e9dcb7.zip |
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>
Diffstat (limited to 'app/Resources/static/themes')
-rw-r--r-- | app/Resources/static/themes/_global/share.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Resources/static/themes/_global/share.js b/app/Resources/static/themes/_global/share.js index d7078616..15206b37 100644 --- a/app/Resources/static/themes/_global/share.js +++ b/app/Resources/static/themes/_global/share.js | |||
@@ -1 +1,4 @@ | |||
1 | import './share.scss'; | 1 | import './share.scss'; |
2 | |||
3 | function requireAll(r) { r.keys().forEach(r); } | ||
4 | requireAll(require.context('./img/', true, /\.(jpg|png|gif|svg|ico)$/)); | ||