sarthak94's avatar

Laravel Mix makes file with wrong name

I was using laravel mix.js for minifying a js file like this:

mix.js("public/js/unminified/*.js", "public/js/minified/*something/");

Now what I want is to go inside a folder ending with "something" as the previous part of folder changes a lot, will I be able to achieve this? Because the above code just make a minified js with name "*something.js". There is only one folder inside minified there are no others. So even if there is a way to save minified file inside the first directory found in minified folder.

What I want: "public/js/minified/xyz-something/{MINIFIED_JS_FILE_WITH_SAME_NAME.js}"

Is this possible ?

0 likes
0 replies

Please or to participate in this conversation.