removing inline of webpack loader to css and excluding css from ava test

This commit is contained in:
Alex Windett 2017-01-30 17:02:02 +00:00
parent 7920b80426
commit 8bbb78132a
2 changed files with 3 additions and 4 deletions

View File

@ -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({

View File

@ -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}`;
}
});
});