Skip to content

Commit

Permalink
Correctif pour les polices et icônes dsfr (#4220)
Browse files Browse the repository at this point in the history
* Copy files during build instead of using symlink

* try copying only whitelisted file types and avoid duplicate directory name

* use bash-compatible syntax

* Simulate slugignore in build to catch this error earlier

* Simpler is better

* Faking slugignore in build raises errors

* don't change slugignore now
  • Loading branch information
victormours committed Apr 16, 2024
1 parent a4a3781 commit 874c4dd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -47,6 +47,8 @@ coverage/
!/app/assets/builds/.keep

/public/assets/*
/public/fonts/*
/public/icons/*

# Postgres dumps
**/20*.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "lapin",
"private": true,
"scripts": {
"build": "webpack --config webpack.config.js"
"build": "webpack --config webpack.config.js; cp -r node_modules/@gouvfr/dsfr/dist/fonts public; cp -r node_modules/@gouvfr/dsfr/dist/icons public;"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.1.1",
Expand Down
1 change: 0 additions & 1 deletion public/fonts

This file was deleted.

Empty file added public/fonts/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion public/icons

This file was deleted.

Empty file added public/icons/.gitkeep
Empty file.

0 comments on commit 874c4dd

Please sign in to comment.