diff --git a/resources/build/lib/utils.js b/resources/build/lib/utils.js index 777480f..36fea78 100644 --- a/resources/build/lib/utils.js +++ b/resources/build/lib/utils.js @@ -54,7 +54,7 @@ module.exports.tests = { scripts: /\.(js|jsx)$/, styles: /\.(css|scss|sass)$/, spriteSvgs: /(resources|dist|node_modules)[\\/]images[\\/]sprite-svg[\\/].*\.svg$/, - images: /(resources|dist|node_modules)[\\/](?!images[\\/]sprite-svg).*\.(ico|jpg|jpeg|png|svg|gif)$/, + images: /(resources|dist|node_modules)[\\/](?!images[\\/]sprite-svg|fonts).*\.(ico|jpg|jpeg|png|svg|gif)$/, fonts: /(resources|dist|node_modules)[\\/](?!images[\\/]sprite-svg).*\.(eot|svg|ttf|woff|woff2)$/, }; diff --git a/resources/scripts/frontend/spritesvg.js b/resources/scripts/frontend/spritesvg.js index 04f9101..f209c0f 100644 --- a/resources/scripts/frontend/spritesvg.js +++ b/resources/scripts/frontend/spritesvg.js @@ -1,4 +1,4 @@ const icons = require.context('@images/sprite-svg', true, /\.svg$/); // Automatically load all SVG files in the sprite-svg directory. -icons.keys().forEach(filename => icons(filename)); +icons.keys().forEach(icons);