cakephp-vite
cakephp-vite copied to clipboard
ViteHelper plugin for CakePHP and Vite JS
I made some modifications, but I was not able to finish. - I removed the `ConfigDefaults` class and I used the Helper's default config method. (Helpers uses `InstanceConfigTrait`) - all...
Currently, when rendering the script tag it adds the "files" parameter as an attribute, which is not necessary. For example:
This PR introduces a new `development.checkManifest` param. When `true` (defaults to `false` for backward compatibility) the helper will look for manifest readability in order to detect dev mode. This is...
Hello, first at all - thank you for your time you used to develop this plugin. Unfortunately today I spotted one problem when I was trying to use it "production"...
Development under Safari is currently not possible, a `[Warning] [blocked] The page at https://my-domain.local was not allowed to run insecure content from http://localhost:3000/webroot_src/main.ts.` etc. warning will be logged. When switching...
Vite config: ``` build: { emptyOutDir: true, outDir: './webroot/dist', manifest: true, rollupOptions: { input: { main: './webroot_src/main.ts', }, }, }, ``` Generated html:  The green scripts are inserted by...
Adding the process to load chunk files split by Vite. Given the following manifest.json: ``` "_vendor-CaB_GCbx.js": { "file": "dist/vendor-CaB_GCbx.js", "name": "vendor", "css": [ "dist/vendor-X5Bfdti4.css" ] }, "resources/src/main.ts": { "file": "dist/main.ts-CyiR19a8.js",...
I finally got around to giving this is a good go on CakePHP5. However, I'm hitting a CORS issue when I run `build`, but not `dev`. I'm using DDEV to...