It works fine if I skipe the --define option, i.e mix esbuild --no-runtime-config default --minify error.js. Also, calling esbuild directly with the --define works:
That's a question for esbuild CLI. :) We simply forward the args. If it is possible via the CLI, then it should work, if it isn't, then there is nothing we can do.
Hello, I'm trying to run the following:
and getting the following error:
It works fine if I skipe the --define option, i.e
mix esbuild --no-runtime-config default --minify error.js
. Also, calling esbuild directly with the --define works:Is it possible to pass the NODE_ENV somehow ?
If not how can I differentiate between prod and dev (or other environments I may compile my assets on) ?
TIA !