@andrew-savi works in Laravel 7. Which version of Laravel you're using?
Mar 23, 2020
4
Level 4
Use laravel-mix to copy a hidden file
I want to copy a hidden file using laravel mix. I'm using Laravel 5.5 for this project. I want to copy .env.dev to .env in my development environment.
My code block in webpack.mix.js looks like this -
// .env file
if (!mix.inProduction()) {
mix.copy('.env.dev', '.env');
}
If I make these files not hidden, I'm able to copy fine. I.e "env.dev.txt" -> "env.txt". I assume it's just some config I'm missing or maybe I have to add an extension on mix. Any ideas?
Please or to participate in this conversation.