Skip to content
Snippets Groups Projects
Commit fcdeeb46 authored by Henric Trotzig's avatar Henric Trotzig
Browse files

Avoid unnecessary spread

We can just push multiple objects into the array in one go.
parent b6295428
No related branches found
No related tags found
No related merge requests found
......@@ -2,35 +2,33 @@ const path = require('path');
module.exports = ({ config }) => {
config.module.rules.push(
...[
{
test: /\.s?css$/,
use: ['style-loader', 'raw-loader', 'sass-loader'],
include: [path.resolve(__dirname, '../css/')],
},
{
test: /\.svg$/,
use: [
{
loader: 'babel-loader',
query: {
presets: ['airbnb'],
},
{
test: /\.s?css$/,
use: ['style-loader', 'raw-loader', 'sass-loader'],
include: [path.resolve(__dirname, '../css/')],
},
{
test: /\.svg$/,
use: [
{
loader: 'babel-loader',
query: {
presets: ['airbnb'],
},
],
},
{
test: /\.jsx$/,
use: [
{
loader: 'babel-loader',
query: {
presets: ['airbnb'],
},
},
],
},
{
test: /\.jsx$/,
use: [
{
loader: 'babel-loader',
query: {
presets: ['airbnb'],
},
],
},
],
},
],
},
);
config.resolve.extensions = ['.js', '.jsx'];
return config;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment