add font awesome

This commit is contained in:
shibao 2021-09-02 23:32:53 -04:00 committed by oliviasculley
parent 66cc11e9eb
commit bde1cff7a4
6 changed files with 6102 additions and 408 deletions

View File

@ -2,6 +2,12 @@
@import "tailwindcss/components"; @import "tailwindcss/components";
@import "tailwindcss/utilities"; @import "tailwindcss/utilities";
$fa-font-path: "@fortawesome/fontawesome-free/webfonts";
@import "@fortawesome/fontawesome-free/scss/fontawesome";
@import "@fortawesome/fontawesome-free/scss/regular";
@import "@fortawesome/fontawesome-free/scss/solid";
@import "@fortawesome/fontawesome-free/scss/brands";
@import "components"; @import "components";
/* LiveView specific classes for your customizations */ /* LiveView specific classes for your customizations */

5443
assets/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,9 @@
"watch": "webpack --mode development --watch --watch-options-stdin" "watch": "webpack --mode development --watch --watch-options-stdin"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"install": "^0.13.0",
"npm": "^7.22.0",
"phoenix": "file:../deps/phoenix", "phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html", "phoenix_html": "file:../deps/phoenix_html",
"phoenix_live_view": "file:../deps/phoenix_live_view", "phoenix_live_view": "file:../deps/phoenix_live_view",
@ -20,6 +23,7 @@
"copy-webpack-plugin": "^9.0.0", "copy-webpack-plugin": "^9.0.0",
"css-loader": "^5.2.7", "css-loader": "^5.2.7",
"css-minimizer-webpack-plugin": "^3.0.1", "css-minimizer-webpack-plugin": "^3.0.1",
"file-loader": "^6.2.0",
"hard-source-webpack-plugin": "^0.13.1", "hard-source-webpack-plugin": "^0.13.1",
"mini-css-extract-plugin": "^1.6.0", "mini-css-extract-plugin": "^1.6.0",
"node-sass": "^6.0.0", "node-sass": "^6.0.0",

View File

@ -41,6 +41,14 @@ module.exports = (env, options) => {
"postcss-loader", "postcss-loader",
"sass-loader", "sass-loader",
], ],
},
{
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]',
outputPath: '../fonts'
}
} }
] ]
}, },

File diff suppressed because it is too large Load Diff

View File

@ -20,5 +20,5 @@ defmodule LokalWeb.Gettext do
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
""" """
use Gettext, otp_app: :lokal # use Gettext, otp_app: :lokal
end end