UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit fed40d75 authored by graham.smith's avatar graham.smith
Browse files

Merge branch 'embed-fonts' into 'master'

embed fonts

See merge request platform-one/private/bullhorn/platform1-site!20
parents 986d84d4 96a3e121
No related branches found
Tags v0.1.11
No related merge requests found
......@@ -1014,6 +1014,18 @@
"to-fast-properties": "^2.0.0"
}
},
"@beyonk/google-fonts-webpack-plugin": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@beyonk/google-fonts-webpack-plugin/-/google-fonts-webpack-plugin-1.2.3.tgz",
"integrity": "sha512-QtWDQJmfqJrIuC6tZNNKYV9/+upRlGnu+11ycrSS22MutpSYeeqDzsSHUc0qKxfaiOAn4ASg13tj7EED5Wy68A==",
"dev": true,
"requires": {
"lodash": "^4.17.4",
"node-fetch": "^2.1.2",
"webpack-sources": "^1.1.0",
"yauzl": "^2.8.0"
}
},
"@cnakazawa/watch": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz",
......
......@@ -8,19 +8,6 @@
content="width=device-width,initial-scale=1.0,shrink-to-fit=no"
/>
<link rel="icon" type="image/png" sizes="502x498" href="./static/p1-logo.png" />
<link
href="//fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
type="text/css"
href="//fonts.googleapis.com/css2?family=Catamaran&display=swap"
/>
<link
href="https://fonts.googleapis.com/css2?family=Anton&display=swap"
rel="stylesheet"
/>
</head>
<body>
<noscript>
......
......@@ -71,7 +71,6 @@ body {
h4,
h5,
h6 {
// font-family: "Catamaran", sans-serif;
font-family: "Open Sans", sans-serif;
text-transform: uppercase;
font-weight: 800;
......
const GoogleFontsPlugin = require("@beyonk/google-fonts-webpack-plugin");
module.exports = {
publicPath: ".",
chainWebpack: config => {
......@@ -15,7 +17,28 @@ module.exports = {
.loader("vue-svg-loader");
},
configureWebpack: {
devtool: "source-map"
devtool: "source-map",
plugins: [
new GoogleFontsPlugin({
fonts: [
{
family: "Open Sans",
variants: [
"400",
"600",
"800",
],
},
{
family: "Anton",
variants: [
"400",
],
},
],
}),
],
},
css: {
loaderOptions: {
......
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