File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
pentatrion/vite-bundle/1.0 Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 10
10
"copy-from-recipe" : {
11
11
"config/" : " %CONFIG_DIR%/"
12
12
},
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
+ ]
14
30
}
Original file line number Diff line number Diff line change 6
6
1. Add if necessary a configuration file in <comment>%CONFIG_DIR%/packages/pentatrion_vite.yaml</>.
7
7
2. Verify the Vite configuration in <comment>/vite.config.js</>.
8
8
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</>
13
11
You can’t perform that action at this time.
0 commit comments