Skip to content

Commit 190792d

Browse files
committed
Add fontsource conf
1 parent 365fbf0 commit 190792d

14 files changed

+87
-16
lines changed

config/loaders.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ module.exports = {
1313
return [
1414
/* FontsLoader */ {
1515
test: /\.(woff|woff2)$/,
16-
type: 'asset/resource',
17-
include: srcPath + '/fonts',
16+
use: [
17+
{
18+
loader: 'file-loader',
19+
options: {
20+
outputPath: 'assets',
21+
},
22+
},
23+
],
1824
},
1925
/* ImagesLoader */ {
2026
test: /\.(png|jpe?g|gif|svg)$/,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"license": "GPL-2.0",
1616
"dependencies": {
17+
"@fontsource/poppins": "^4.5.10",
1718
"lazysizes": "^5.3.2",
1819
"oneloop.js": "^5.0.0",
1920
"sharp": "^0.32.0",
@@ -35,6 +36,7 @@
3536
"eslint-config-prettier": "^8.5.0",
3637
"eslint-plugin-prettier": "^4.2.1",
3738
"eslint-webpack-plugin": "^3.2.0",
39+
"file-loader": "^6.2.0",
3840
"image-webpack-loader": "^7.0.1",
3941
"js-yaml": "^4.1.0",
4042
"json2csv": "^5.0.6",

src/fonts/.gitkeep

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)