Perhaps not the best solution, but I found the issue on the Brave repo, and you can fix it by setting the Node environment variable to production
(or anything but development
) in the start
script in package.json
:
"scripts": {
// ...
"start": "NODE_ENV=production webpack --hide-modules --watch --config resources/assets/build/webpack.config.js",
// ...
}