1.2.26.9.43.10.10How to copy a dot file such .htaccess using Mix
Previously in Elixir this worked: mix.copy('resources/assets/*.htaccess', elixir.config.publicPath + '/').
However, trying the same in Mix (mix.copy('resources/assets/*.htaccess', publicPath + '/')), gives no matches.
Is there new syntax to follow?
@u01jmg3
mix.copy('resources/assets/.htaccess', publicPath + '/.htaccess')
Try that. you have to specify the destination file as well for hidden files (or dot files).
Works a treat, thanks
Most helpful comment
@u01jmg3
Try that. you have to specify the destination file as well for hidden files (or dot files).