Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pentatrion/vite-bundle recipe #1525

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion pentatrion/vite-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,21 @@
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"]
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"],
"add-lines": [
{
"file": "templates/base.html.twig",
"content": " {{ vite_entry_script_tags('app') }}",
"position": "after_target",
"target": "{% block javascripts %}",
"warn_if_missing": true
},
{
"file": "templates/base.html.twig",
"content": " {{ vite_entry_link_tags('app') }}",
"position": "after_target",
"target": "{% block stylesheets %}",
"warn_if_missing": true
}
]
}
6 changes: 2 additions & 4 deletions pentatrion/vite-bundle/1.0/post-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
1. Add if necessary a configuration file in <comment>%CONFIG_DIR%/packages/pentatrion_vite.yaml</>.
2. Verify the Vite configuration in <comment>/vite.config.js</>.
3. Install npm and run <comment>npm i</>.
4. Add JS Twig function <comment>{{ vite_entry_script_tags('app') }}</> into your base.html.twig.
5. Add CSS Twig function <comment>{{ vite_entry_link_tags('app') }}</> into your base.html.twig.
6. Start the development server: <comment>npm run dev</>.
7. Start coding into <comment>assets/app.js</>
4. Start the development server: <comment>npm run dev</>.
5. Start coding into <comment>assets/app.js</>