From 8943a13fa9ef4903ee4bf8b174920d0e070a07ee Mon Sep 17 00:00:00 2001 From: drolsen Date: Thu, 12 Sep 2019 14:08:25 -0700 Subject: [PATCH] Relocating the image collecting for assets.js --- build/assets.jsx | 9 +++++++++ src/elements/atoms/Icon/assets/brand.svg | 1 - src/styles.js | 9 --------- 3 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 src/elements/atoms/Icon/assets/brand.svg diff --git a/build/assets.jsx b/build/assets.jsx index 64a0e2e..4e689ab 100644 --- a/build/assets.jsx +++ b/build/assets.jsx @@ -7,3 +7,12 @@ import '@src/styles'; import '@src/scripts'; + +const requireAll = (context) => context.keys().map(context); + +// Import all CSS and Image files +requireAll(require.context( + '@elements/', + true, + /^(?!.*Root).*\/(?!.*RichText).*\/(?!.*font-face).*\.(css|svg|jpg|png|gif)$/ +)); diff --git a/src/elements/atoms/Icon/assets/brand.svg b/src/elements/atoms/Icon/assets/brand.svg deleted file mode 100644 index 9339abb..0000000 --- a/src/elements/atoms/Icon/assets/brand.svg +++ /dev/null @@ -1 +0,0 @@ -Un \ No newline at end of file diff --git a/src/styles.js b/src/styles.js index 29efd1d..02c95ec 100644 --- a/src/styles.js +++ b/src/styles.js @@ -1,5 +1,3 @@ -const requireAll = (context) => context.keys().map(context); - // Import variables CSS require('reset-css'); require('@vars/breakpoints.css'); @@ -13,10 +11,3 @@ require('@vars/zindex.css'); // Import root and richtext CSS require('@atoms/Root/Root.css'); require('@atoms/RichText/RichText.css'); - -// Import all CSS and Image files -requireAll(require.context( - '@elements/', - true, - /^(?!.*Root).*\/(?!.*RichText).*\/(?!.*font-face).*\.(css|svg|jpg|png|gif)$/ -));