2
Guys, I have a folder inside the Resources called js where you have several JS files and subfolders with other Jss. How do I set up Laravel Mix to compile all the contents of the JS folder including the subfolders for the public/js folder keeping the original names and folders and if possible applying versioning to the files.
Ex.
Resources/js/teste1.js
Resources/js/teste2.js
Resources/js/teste3.js
Resources/js/temp/teste1.js
Resources/js/temp/teste2.js
Once compiled it has to look like this:
public/js/teste1.js
public/js/teste2.js
public/js/teste3.js
public/js/temp/teste1.js
public/js/temp/teste2.js
Thank you
Have you ever tried something like this? mix.js('Resources/Assets/js/*. js', 'public/js');
– Diego Vieira
@Diegovieira o mix.js does not accept jokers in his sentence.
– Joao Nivaldo
Have you tried the
copyDirectory
?– Valdeir Psr
@Valdeirpsr then copyDirectory it does not compile the JS, it apanas copies like this to the final directory. I need to compile to run on all browsers.
– Joao Nivaldo