From 8bbb78132a3b16a845417004912ad914ba614457 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Mon, 30 Jan 2017 17:02:02 +0000 Subject: [PATCH] removing inline of webpack loader to css and excluding css from ava test --- frontend/src/components/people-list/invite.js | 4 +--- frontend/test/_hook.js | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/people-list/invite.js b/frontend/src/components/people-list/invite.js index 4e0be231..4a49bf62 100644 --- a/frontend/src/components/people-list/invite.js +++ b/frontend/src/components/people-list/invite.js @@ -6,9 +6,7 @@ const Button = require('@ui/components/button'); // TOOD: Require from UI Components - causes issue ATM. const Select = require('react-select'); -// require('react-select/dist/react-select.css'); - -require('!style-loader!css-loader!react-select/dist/react-select.css'); +require('react-select/dist/react-select.css'); const Invite = React.createClass({ diff --git a/frontend/test/_hook.js b/frontend/test/_hook.js index 36062abf..8c709b5f 100644 --- a/frontend/test/_hook.js +++ b/frontend/test/_hook.js @@ -9,6 +9,7 @@ hook.hook('.woff', () => ''); hook.hook('.woff2', () => ''); hook.hook('.ttf', () => ''); hook.hook('.svg', () => ''); +hook.hook('.css', () => ''); register({ extensions: ['.js'] @@ -35,4 +36,4 @@ requireHacker.global_hook('inline-svgs', (path) => { if(path.match(/!babel-loader!svg-react-loader/)) { return `module.exports = ${fakeComponentString}`; } -}); +}); \ No newline at end of file