fixes css imports like an adult

This commit is contained in:
James
2020-09-14 21:25:11 -04:00
parent b462fe5f77
commit e95edbd3e4
2 changed files with 2 additions and 3 deletions

View File

@@ -3,8 +3,7 @@ import PropTypes from 'prop-types';
import DatePicker from 'react-datepicker';
import CalendarIcon from '../../icons/Calendar';
// eslint-disable-next-line import/no-unresolved
import '~react-datepicker/dist/react-datepicker.css';
import 'react-datepicker/dist/react-datepicker.css';
import './index.scss';
const baseClass = 'date-time-picker';

View File

@@ -101,7 +101,7 @@ module.exports = (config) => {
// Chains the sass-loader with the css-loader and the style-loader
// to immediately apply all styles to the DOM.
{
test: /\.(scss|sass)$/,
test: /\.(scss|sass|css)$/,
use: getStyleLoaders({ importLoaders: 2 }, 'sass-loader'),
},
// "file" loader makes sure those assets get served by WebpackDevServer.