aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/_global
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2017-10-15 23:57:35 +0200
committerKevin Decherf <kevin@kdecherf.com>2017-10-16 00:01:52 +0200
commit7a1e1247cbc3b7a68c82c45733713c4630e9dcb7 (patch)
tree0d6a7869fa746e62c3c3b93f50557760fa1f0bd9 /app/Resources/static/themes/_global
parentef7f187fa8aa18acf68750e5539ccceb524ab598 (diff)
downloadwallabag-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/_global')
-rw-r--r--app/Resources/static/themes/_global/share.js3
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 @@
1import './share.scss'; 1import './share.scss';
2
3function requireAll(r) { r.keys().forEach(r); }
4requireAll(require.context('./img/', true, /\.(jpg|png|gif|svg|ico)$/));