-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,15 @@ ddev start | |
# install dependencies | ||
ddev composer install && ddev npm install | ||
|
||
# will only prompt for password, other settings = leave defaults | ||
# install craft cms | ||
# You can remove password from this command if you want to enter it manually | ||
ddev craft install/craft \ | ||
--username=admin \ | ||
[email protected] \ | ||
--site-name=Testsite | ||
--username="admin" \ | ||
--email="[email protected]" \ | ||
--password="password123" \ | ||
--site-name="Testsite" \ | ||
--language="en" \ | ||
--site-url='$DDEV_PRIMARY_URL' | ||
|
||
# already installed in composer, but needs activation: | ||
ddev craft plugin/install vite | ||
|
@@ -176,11 +180,13 @@ Add the following scripts to `package.json`: | |
6. Edited `index.twig`, added craft-vite (and created `app.js` + `app.scss` file) | ||
|
||
``` | ||
{{ craft.vite.script("src/js/app.js") }} | ||
{{ craft.vite.script("src/js/app.js", false) }} | ||
``` | ||
|
||
7. That's it, have fun! | ||
|
||
8. Updated from v4 to v5 https://craftcms.com/docs/5.x/upgrade.html | ||
|
||
## Acknowledgements | ||
|
||
Thanks to the DDEV maintainers and DDEV open source community, especially [Randy Fay](https://github.com/rfay) for suggestions and feedback! 💚 | ||
|