Skip to content

Commit

Permalink
Copy over font files
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 1, 2024
1 parent 4c6e681 commit 46735b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/vendor/fontawesome.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$fa-font-path: '~@fortawesome/fontawesome-free/webfonts';
$fa-font-path: '../fonts';

@import '@fortawesome/fontawesome-free/scss/fontawesome';
@import '@fortawesome/fontawesome-free/scss/regular';
@import '@fortawesome/fontawesome-free/scss/brands';
Expand Down
6 changes: 4 additions & 2 deletions assets/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = {
sassOptions: {
includePaths: [
"node_modules/bootstrap/scss",
"node_modules/font-awesome/scss"
"node_modules/@fortawesome/fontawesome-free/scss"
],
outputStyle: "compressed",
quietDeps: true
Expand Down Expand Up @@ -178,7 +178,9 @@ module.exports = {
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: "static/**/*", to: "../.." }
{ from: "static/**/*", to: "../.." },
// copy the font files out of the fontawesome package to the fonts directory
{ from: "**/*", to: "../fonts", context: "node_modules/@fortawesome/fontawesome-free/webfonts"}
]
}),
new MiniCssExtractPlugin({ filename: "../css/[name].css" }),
Expand Down

0 comments on commit 46735b6

Please sign in to comment.