Skip to content

Commit

Permalink
Relocating the image collecting for assets.js
Browse files Browse the repository at this point in the history
  • Loading branch information
drolsen committed Sep 12, 2019
1 parent 3ab0af8 commit 8943a13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 9 additions & 0 deletions build/assets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)$/
));
1 change: 0 additions & 1 deletion src/elements/atoms/Icon/assets/brand.svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/styles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const requireAll = (context) => context.keys().map(context);

// Import variables CSS
require('reset-css');
require('@vars/breakpoints.css');
Expand All @@ -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)$/
));

0 comments on commit 8943a13

Please sign in to comment.