Skip to content

Commit

Permalink
Fixup minor svg stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed May 22, 2020
1 parent be12896 commit f8b725a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/build/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)$/,
};

Expand Down
2 changes: 1 addition & 1 deletion resources/scripts/frontend/spritesvg.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit f8b725a

Please sign in to comment.