Hi Roots community,
I’ve got a build coming through clean but on build:production it errors at like so:
webpack --progress -p --config resources/assets/build/webpack.config.js
clean-webpack-plugin: /beta/site/web/app/themes/drishti/dist has been removed.
ERROR in scripts/main_5f91dd25.js from UglifyJs
Unexpected token: operator (>) [scripts/main_5f91dd25.js:717,20]
My grievance is that webpack clears out the dist folder after failing which means i can’t track down the offending line in the source files. Anyone able to help guide me to be able to debug this?
PS: build:production bombs only when i keep the exclude on npm module folders. If i comment that exclude in the JS rule out, it completes successfully. Surely that’s not a best practice right?