mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-05-16 17:13:54 +02:00
Update to Font Awesome 5
Nothing really new as far as how we're using Font Awesome, but it is good to keep up with the times and the tooling. Users that have used custom fonts in their content or layouts will need to update their icon prefixes from "fa" to "fas" or "fab" depending on which font their icon comes from. See: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
"scripts": {
|
||||
"build:css": "node-sass --output-style expanded --precision 6 source/scss/style.scss assets/css/style.css.tmp && cleancss --level 1 assets/css/style.css.tmp -o assets/css/style.css",
|
||||
"build:rtlcss": "rtlcss -s assets/css/style.css.tmp assets/css/style.rtl.css.tmp && cleancss --level 1 assets/css/style.rtl.css.tmp -o assets/css/style.rtl.css",
|
||||
"build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts",
|
||||
"build:fonts": "cp node_modules/@fortawesome/fontawesome-free/webfonts/* static/webfonts",
|
||||
"build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css assets/css && cp node_modules/cookieconsent/build/cookieconsent.min.js assets/js",
|
||||
"build": "npm run build:css && npm run build:rtlcss && npm run build:fonts && npm run build:cookieconsent && npm run clean",
|
||||
"clean": "rm assets/css/style.css.tmp assets/css/style.rtl.css.tmp"
|
||||
@ -21,7 +21,7 @@
|
||||
"bootstrap": "~4.4.1",
|
||||
"clean-css-cli": "^4.3.0",
|
||||
"cookieconsent": "3.0.4",
|
||||
"font-awesome": "^4.7.0",
|
||||
"@fortawesome/fontawesome-free": "^5.12.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"rtlcss": "^2.4.1"
|
||||
}
|
||||
|
Reference in New Issue
Block a user