Installing Statamic + Peak into an existing Laravel application #451
Replies: 4 comments 1 reply
-
|
If I were to do that you'd get errors when you install Peak in a default way as app.css and app.js don't exist. What does the |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I'll have to do this manually if there's no other way. 😩😊
|
Beta Was this translation helpful? Give feedback.
-
|
Afraid so, sorry :-) |
Beta Was this translation helpful? Give feedback.
-
|
I just came across this, so if you're thinking about including
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We can install a fresh Statamic together with Peak or we can install Peak into an existing, clean, Statamic installation. Statamic itself can be installed as a separate application or into an existing Laravel application. In the second scenario, followed by the installation of Peak, a small discrepancy appears at the level of the vite.config.js file - it does not contain/removes the files 'resources/css/app.css' and 'resources/js/app.js', required for the existing Laravel application, and the CORS and WATCH configs. To avoid manually editing vite.config.js, it would be very nice if these were included by default (perhaps through a separate option when installing Peak).
P.S. The problem is reversed when Statamic is installed without Peak (files 'resources/css/app.css' and 'resources/js/app.js' appear, but files 'resources/css/site.css' and 'resources/js/site.js' do not), but that does not matter, as long as Peak adds its own version of vite.config.js.
$ laravel new laravel-test.test --livewire$ statamic new statamic-test.test$ statamic new statamic-peak.test studio1902/statamic-peakOR
$ php please starter-kit:install studio1902/statamic-peakvite.config.js combined/desired
Beta Was this translation helpful? Give feedback.
All reactions