Laravel Mix - Compilation

Hi Guys,

I'm trying to find a way to compile assets using the Statamic Control Panel. We're using Laravel Mix and I was hoping not to have to build my own addon to do it. I've had a play with the laravel-mix addon but can't get it to work. I assume I'm being dim and haven't configured it correctly.

Originally my webpack.mix.js file was in my theme folder and I was compiling from there using npm run dev (or prod). That works fine but the laravel-mix addon doesn't seem to find my webpack.mix.js file. I assume it's looking for it in a specific location?

I've read and re-read the instructions but can't seem to spot where I should be putting the file, or how to make laravel-mix spot my config (I'm almost certainly missing it). Does anyone have any clue? Or an alternative method of running npm commands from the Statamic Control panel?

Thanks, Paul

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower