Fix build config to support Windows path separators and newlines

This commit is contained in:
Brad Christensen 2020-01-18 16:42:36 +13:00
parent 1072e5778f
commit 556fc31000
2 changed files with 3 additions and 2 deletions

View File

@ -3,5 +3,6 @@
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none",
"quoteProps": "preserve"
"quoteProps": "preserve",
"endOfLine": "auto"
}

View File

@ -131,7 +131,7 @@ function config(options) {
]
},
{
test: /fonts\/.*\.(woff|ttf|eot|svg)$/,
test: /fonts[\\/].*\.(woff|ttf|eot|svg)$/,
use: ['url-loader', 'ignore-loader']
},
{ test: /\.woff2$/, loader: 'url-loader' },