Hey guys, just migrated my big Laravel project from Laravel Mix (webpack) to Vite. I have an issue with tinymce, located in node_modules, which I want to import "as is" in my build folder... import.meta.glob('/node_modules/tinymce/tinymce.min.js'); doesn't seem to do anything, neither with relative path, the file doesn't appear in the build folder. Simply adding 'tinymce/tinymce.min.js' in the Laravel config list do create the file, BUT it's modified by the compilation and returns a bunch of JS errors when loaded...
Even better would be the ability to copy a folder from node_modules, like the whole tinymce folder, over to the public folder, but I don't think that's possible with Vite.
Thanks ahead for helping.
#Adding from node_modules as is...
1 messages · Page 1 of 1 (latest)