2019-12-17 20:25:57 +00:00
|
|
|
module.exports = ({ config }) => {
|
|
|
|
config.entry.unshift(
|
|
|
|
'!!style-loader!css-loader!sanitize.css',
|
|
|
|
'!!style-loader!css-loader!typeface-inter'
|
|
|
|
);
|
|
|
|
|
|
|
|
config.module.rules.unshift(
|
|
|
|
{
|
2020-02-07 19:07:22 +00:00
|
|
|
test: /\.[jt]sx?$/,
|
2019-12-17 20:25:57 +00:00
|
|
|
loader: 'babel-loader',
|
2020-02-07 19:07:22 +00:00
|
|
|
exclude: /node_modules/,
|
2019-12-17 20:25:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
loaders: [
|
|
|
|
'style-loader',
|
|
|
|
'css-loader?modules=true&localsConvention=camelCaseOnly',
|
|
|
|
'sass-loader',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
config.resolve.extensions = ['.tsx', '.ts', '.jsx', '.js'];
|
|
|
|
|
|
|
|
return config;
|
|
|
|
};
|