Merge pull request #414 from standardnotes/fix-fonts-assets
Fix fonts assets
This commit is contained in:
@@ -34,14 +34,8 @@ COPY . /app/
|
||||
# Leave RAILS_SERVE_STATIC_FILES commented if Nginx/Apache will serve static files instead of rails.
|
||||
###
|
||||
|
||||
RUN bundle install
|
||||
|
||||
RUN npm install
|
||||
|
||||
RUN npm run build
|
||||
|
||||
RUN bundle exec rake assets:precompile
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT [ "./docker/entrypoint" ]
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
*/
|
||||
@font-face {
|
||||
font-family: "Ionicons";
|
||||
src: url("../fonts/ionicons.eot?v=2.0.0");
|
||||
src: url("../fonts/ionicons.eot?v=2.0.1#iefix") format("embedded-opentype"), url("../fonts/ionicons.ttf?v=2.0.1") format("truetype"), url("../fonts/ionicons.woff?v=2.0.1") format("woff"), url("../fonts/ionicons.svg?v=2.0.1#Ionicons") format("svg");
|
||||
src: url("/assets/fonts/ionicons.eot?v=2.0.0");
|
||||
src: url("/assets/fonts/ionicons.eot?v=2.0.1#iefix") format("embedded-opentype"), url("/assets/fonts/ionicons.ttf?v=2.0.1") format("truetype"), url("/assets/fonts/ionicons.woff?v=2.0.1") format("woff"), url("/assets/fonts/ionicons.svg?v=2.0.1#Ionicons") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ Rails.application.config.assets.version = '1.0'
|
||||
Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets')
|
||||
Rails.application.config.assets.paths << Rails.root.join('dist')
|
||||
|
||||
Rails.application.config.assets.precompile << ["*.svg", "*.eot", "*.woff", "*.ttf"]
|
||||
Rails.application.config.assets.precompile += %w( fonts/ionicons.eot fonts/ionicons.svg fonts/ionicons.ttf fonts/ionicons.woff )
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"scripts": {
|
||||
"start": "webpack-dev-server --progress",
|
||||
"bundle": "webpack --mode production",
|
||||
"build": "bundle install && npm install && npm run bundle",
|
||||
"build": "bundle install && npm ci && bundle exec rails assets:precompile && npm run bundle",
|
||||
"submodules": "git submodule update --init --force --remote",
|
||||
"test": "karma start karma.conf.js --single-run",
|
||||
"lint": "eslint --fix app/assets/javascripts/**/*.js"
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Reference in New Issue
Block a user