Skip to content

Commit

Permalink
feat: affine config
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Jan 20, 2025
1 parent accadb5 commit 92fc5b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/packages/pentatrion_vite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pentatrion_vite:
public_directory: public
build_directory: build
throw_on_missing_entry: true
throw_on_missing_asset: false
throw_on_missing_asset: true
# crossorigin: true

# when@dev:
Expand Down
4 changes: 2 additions & 2 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

{# <link rel="stylesheet" href="{{ asset('node_modules/@codegouvfr/react-dsfr/main.css') }}" /> #}

{% set fonts_list = ['Marianne-Regular', 'Marianne-Medium', 'Marianne-Bold', 'Spectral-Regular'] %}
{% set fonts_list = ['Marianne-Regular', 'Marianne-Medium', 'Marianne-Bold'] %}

{% for font_name in fonts_list %}
<link rel="preload" href="{{ asset('node_modules/@codegouvfr/react-dsfr/dsfr/fonts/' ~ font_name ~ '.woff2') }}" as="font" crossorigin="anonymous" />
{% endfor %}

{% block stylesheets %}
{{ vite_entry_link_tags('dsfr', {preloadDynamicImports: true}) }}
{{ vite_entry_link_tags('dsfr') }}
{{ vite_entry_link_tags('main') }}
{# {{ encore_entry_link_tags('main') }} #}
{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
// Required to listen on all interfaces
host: "0.0.0.0",
cors: true,
force: true,
},
plugins: [
react(), // if you're using React
Expand Down

0 comments on commit 92fc5b0

Please sign in to comment.