Trying to implement a font now and also running into issues, having previously used almost identical code on another sage project where it works perfectly.
I have created a _fonts.scss file with the following
@font-face {
font-family: "Glyphter";
src: url("../fonts/Glyphter.eot");
src:
url("../fonts/Glyphter.eot?#iefix") format("embedded-opentype"),
url("../fonts/Glyphter.woff") format("woff"),
url("../fonts/Glyphter.ttf") format("truetype"),
url("../fonts/Glyphter.svg#Glyphter") format("svg");
font-weight: normal;
font-style: normal;
}
[class*="icon-"]::before {
display: inline-block;
font-family: "Glyphter";
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-icon-close::before { content: "\0041"; }
.icon-icon-contact-arrow::before { content: "\0042"; }
.icon-icon-facebook::before { content: "\0043"; }
.icon-icon-instagram::before { content: "\0044"; }
.icon-icon-mail::before { content: "\0045"; }
$std-font: "IBM Plex Sans", sans-serif;
$contact-font: "Inter", sans-serif;`
And placed the fonts into the appropriate folder resources/asses/fonts
when I try and build I get the following error and the dist folder is missing
ERROR Failed to compile with 4 errors 09:32:39
These relative modules were not found:
* ./fonts/Glyphter.eot in ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/dist/cjs.js?{"postcssOptions":{"path":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets/build","ctx":{"open":true,"copy":"images/**/*","proxyUrl":"http://localhost:3000","cacheBusting":"[name]_[hash:8]","paths":{"root":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref","assets":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets","dist":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/dist"},"enabled":{"sourceMaps":true,"optimize":false,"cacheBusting":false,"watcher":true},"watch":["app/**/*.php","config/**/*.php","resources/views/**/*.php"],"entry":{"main":["./scripts/main.js","./styles/main.scss"],"customizer":["./scripts/customizer.js"]},"publicPath":"/app/themes/pdcref/dist/","devUrl":"http://localhost","env":{"production":false,"development":true},"manifest":{}}},"sourceMap":true}!./node_modules/resolve-url-loader?{"sourceMap":true}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true,"sourceComments":true}!./node_modules/import-glob!./resources/assets/styles/main.scss
* ./fonts/Glyphter.svg in ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/dist/cjs.js?{"postcssOptions":{"path":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets/build","ctx":{"open":true,"copy":"images/**/*","proxyUrl":"http://localhost:3000","cacheBusting":"[name]_[hash:8]","paths":{"root":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref","assets":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets","dist":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/dist"},"enabled":{"sourceMaps":true,"optimize":false,"cacheBusting":false,"watcher":true},"watch":["app/**/*.php","config/**/*.php","resources/views/**/*.php"],"entry":{"main":["./scripts/main.js","./styles/main.scss"],"customizer":["./scripts/customizer.js"]},"publicPath":"/app/themes/pdcref/dist/","devUrl":"http://localhost","env":{"production":false,"development":true},"manifest":{}}},"sourceMap":true}!./node_modules/resolve-url-loader?{"sourceMap":true}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true,"sourceComments":true}!./node_modules/import-glob!./resources/assets/styles/main.scss
* ./fonts/Glyphter.ttf in ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/dist/cjs.js?{"postcssOptions":{"path":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets/build","ctx":{"open":true,"copy":"images/**/*","proxyUrl":"http://localhost:3000","cacheBusting":"[name]_[hash:8]","paths":{"root":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref","assets":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets","dist":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/dist"},"enabled":{"sourceMaps":true,"optimize":false,"cacheBusting":false,"watcher":true},"watch":["app/**/*.php","config/**/*.php","resources/views/**/*.php"],"entry":{"main":["./scripts/main.js","./styles/main.scss"],"customizer":["./scripts/customizer.js"]},"publicPath":"/app/themes/pdcref/dist/","devUrl":"http://localhost","env":{"production":false,"development":true},"manifest":{}}},"sourceMap":true}!./node_modules/resolve-url-loader?{"sourceMap":true}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true,"sourceComments":true}!./node_modules/import-glob!./resources/assets/styles/main.scss
* ./fonts/Glyphter.woff in ./node_modules/cache-loader/dist/cjs.js!./node_modules/css-loader?{"sourceMap":true}!./node_modules/postcss-loader/dist/cjs.js?{"postcssOptions":{"path":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets/build","ctx":{"open":true,"copy":"images/**/*","proxyUrl":"http://localhost:3000","cacheBusting":"[name]_[hash:8]","paths":{"root":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref","assets":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/resources/assets","dist":"/Users/naomispirit/Websites/pdcref.co.uk/bedrock/web/app/themes/pdcref/dist"},"enabled":{"sourceMaps":true,"optimize":false,"cacheBusting":false,"watcher":true},"watch":["app/**/*.php","config/**/*.php","resources/views/**/*.php"],"entry":{"main":["./scripts/main.js","./styles/main.scss"],"customizer":["./scripts/customizer.js"]},"publicPath":"/app/themes/pdcref/dist/","devUrl":"http://localhost","env":{"production":false,"development":true},"manifest":{}}},"sourceMap":true}!./node_modules/resolve-url-loader?{"sourceMap":true}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true,"sourceComments":true}!./node_modules/import-glob!./resources/assets/styles/main.scss