bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
193 stars 91 forks source link

How to remove var process = process || {env: {NODE_ENV: #266

Closed aberbenni closed 1 year ago

aberbenni commented 3 years ago

Is there any way (eg. config option) to get rid of var process = process || {env: {NODE_ENV: string at the beginning of file?

Janvanoorschot commented 3 years ago

I have just asked a similar question in https://stackoverflow.com/questions/64632219/grails-run-app-services-javascript-starting-with-node-env-line.

Janvanoorschot commented 3 years ago

I have posted an answer in the above mentioned stackoverflow question. This answer might be of use to you.

davydotcom commented 1 year ago

That is placed there so that node modules can run/compile correctly. Often if its not there the js can fail on some modules to compile correctly.