From 320d8b060862c5aa67584ca7b0a9927bb4de46b7 Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Fri, 3 Dec 2021 04:27:06 +0100 Subject: [PATCH] Include adobe fonts css to the project --- package.json | 2 ++ web/font.css | 18 ++++++++++++++++++ web/index.js | 1 + webpack.config.js | 10 ++++++++++ 4 files changed, 31 insertions(+) create mode 100644 web/font.css diff --git a/package.json b/package.json index 84ddebb..4423f5e 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ }, "license": "MIT", "devDependencies": { + "css-loader": "^6.5.1", + "style-loader": "^3.3.1", "webpack": "^5.63.0", "webpack-cli": "^4.9.1", "webpack-dev-server": "^4.4.0" diff --git a/web/font.css b/web/font.css new file mode 100644 index 0000000..5fb762f --- /dev/null +++ b/web/font.css @@ -0,0 +1,18 @@ +/* + * The Typekit service used to deliver this font or fonts for use on websites + * is provided by Adobe and is subject to these Terms of Use + * http://www.adobe.com/products/eulas/tou_typekit. For font license + * information, see the list below. + * + * rockwell: + * - http://typekit.com/eulas/00000000000000007735bab8 + * + * © 2009-2021 Adobe Systems Incorporated. All Rights Reserved. + */ +/*{"last_published":"2021-11-09 19:51:07 UTC"}*/ + +@font-face { +font-family:"rockwell"; +src:url("https://use.typekit.net/af/ed9b67/00000000000000007735bab8/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/ed9b67/00000000000000007735bab8/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/ed9b67/00000000000000007735bab8/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype"); +font-display:auto;font-style:normal;font-weight:400; +} diff --git a/web/index.js b/web/index.js index e69de29..7faa37d 100644 --- a/web/index.js +++ b/web/index.js @@ -0,0 +1 @@ +import "./font.css" \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 613d84f..71faa81 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,5 +8,15 @@ module.exports = { path: path.resolve(__dirname, 'out'), }, module: { + rules: [ + { + test: /\.(s?css)$/, + use: [{ + loader: 'style-loader' + }, { + loader: 'css-loader' + }] + }, + ], }, };