Closed markhalliwell closed 3 years ago
@markhalliwell I've just tested this and it works as expected. The .browserslistrc
is being detected and the correct category/query is being read.
What appears to be happening is the BROWSERSLIST_ENV
value is being ignored in favour of the NODE_ENV
set by Laravel Mix when running with --production
.
According to the following documentation, setting the
targets
options tofalse
should automatically allow.browserslistrc
to be picked up; however, that isn't the case.Installed versions:
laravel-mix-polyfill
:3.0.0
laravel-mix
:6.0.11
webpack
:5.20.2
@babel/core
:7.12.13
.browserslistrc
:Command being executed:
The only way I'm able to get it to work is if I do the following to manually set the targets:
My guess is that it might have something to do with the cacheDirectory only being set if
debug
is enabled.