Merge pull request #2032 from juniorgarcia/master

Added support to .otf fonts
This commit is contained in:
Ben Word
2018-04-25 12:07:12 -06:00
committed by GitHub

View File

@@ -94,7 +94,7 @@ let webpackConfig = {
}), }),
}, },
{ {
test: /\.(ttf|eot|woff2?|png|jpe?g|gif|svg|ico)$/, test: /\.(ttf|otf|eot|woff2?|png|jpe?g|gif|svg|ico)$/,
include: config.paths.assets, include: config.paths.assets,
loader: 'url', loader: 'url',
options: { options: {
@@ -103,7 +103,7 @@ let webpackConfig = {
}, },
}, },
{ {
test: /\.(ttf|eot|woff2?|png|jpe?g|gif|svg|ico)$/, test: /\.(ttf|otf|eot|woff2?|png|jpe?g|gif|svg|ico)$/,
include: /node_modules/, include: /node_modules/,
loader: 'url', loader: 'url',
options: { options: {