Skip to content

Commit 0b596c2

Browse files
Update recipes 2023-06-25 (#44)
1 parent 26809f5 commit 0b596c2

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

pentatrion/vite-bundle/1.0/manifest.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,21 @@
1010
"copy-from-recipe": {
1111
"config/": "%CONFIG_DIR%/"
1212
},
13-
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"]
13+
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"],
14+
"add-lines": [
15+
{
16+
"file": "templates/base.html.twig",
17+
"content": " {{ vite_entry_script_tags('app') }}",
18+
"position": "after_target",
19+
"target": "{% block javascripts %}",
20+
"warn_if_missing": true
21+
},
22+
{
23+
"file": "templates/base.html.twig",
24+
"content": " {{ vite_entry_link_tags('app') }}",
25+
"position": "after_target",
26+
"target": "{% block stylesheets %}",
27+
"warn_if_missing": true
28+
}
29+
]
1430
}

pentatrion/vite-bundle/1.0/post-install.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
1. Add if necessary a configuration file in <comment>%CONFIG_DIR%/packages/pentatrion_vite.yaml</>.
77
2. Verify the Vite configuration in <comment>/vite.config.js</>.
88
3. Install npm and run <comment>npm i</>.
9-
4. Add JS Twig function <comment>{{ vite_entry_script_tags('app') }}</> into your base.html.twig.
10-
5. Add CSS Twig function <comment>{{ vite_entry_link_tags('app') }}</> into your base.html.twig.
11-
6. Start the development server: <comment>npm run dev</>.
12-
7. Start coding into <comment>assets/app.js</>
9+
4. Start the development server: <comment>npm run dev</>.
10+
5. Start coding into <comment>assets/app.js</>
1311

0 commit comments

Comments
 (0)