fgeierst / typo3-vite-demo

GNU General Public License v2.0
20 stars 5 forks source link

Assets result in 404 with wrong path #24

Open peter-neumann-dev opened 1 year ago

peter-neumann-dev commented 1 year ago

Reproduce Include a file, for example with url() in SCSS, that will be added to the assets of builds (could also be a problem of assets outside CSS). Both in development mode and productions builds assets have the wrong path resulting in 404.

Example from a background-image:

Possible solutions

peter-neumann-dev commented 1 year ago

One solution for production build is to apply the base to the Vite config: base: '/typo3conf/ext/typo3_vite_demo/Resources/Public/Vite/'

For development, additional configuration appears to be necessary…

misterboe commented 1 year ago

That is the solution for develop:

https://github.com/fgeierst/typo3-vite-demo/pull/22#issuecomment-1409939412