mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 10:36:52 +03:00
add recipe for pentatrion/vite-bundle (#1189)
* add recipe for vite-bundle * change vite version constraint and yaml config * fix assets directory * remove aliases * fix list numbers * move conf files from recipe to package * move config files from recipe to package
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Pentatrion\\ViteBundle\\PentatrionViteBundle": ["all"]
|
||||
},
|
||||
"copy-from-package": {
|
||||
"install/assets/": "assets/",
|
||||
"install/package.json": "package.json",
|
||||
"install/vite.config.js": "vite.config.js"
|
||||
},
|
||||
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<bg=blue;fg=white> </>
|
||||
<bg=blue;fg=white> Getting started using </><bg=blue;fg=white;options=bold>pentatrion/vite-bundle</><bg=blue;fg=white> </>
|
||||
<bg=blue;fg=white> </>
|
||||
|
||||
<fg=blue;options=bold>Configure</> <fg=blue>your transformations:</>
|
||||
1. Verify and uncomment the configuration 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.js') }}</> into your base.html.twig.
|
||||
5. Add CSS Twig function <comment>{{ vite_entry_link_tags('app.js') }}</> into your base.html.twig.
|
||||
6. Start the development server: <comment>npm run dev</>.
|
||||
7. Start coding into <comment>assets/app.js</>
|
||||
|
||||
Reference in New Issue
Block a user