bertramdev / asset-pipeline

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

Add nodeEnv in config options to SET process.env.NODE_ENV for js require #236

Closed aibolit closed 5 years ago

aibolit commented 5 years ago

This will allow setting NODE_ENV for babel compilation via the nodeEnv param in configOptions in build.gradle

example:

assets {
    configOptions = [
        nodeEnv: 'production'
    ]
}
davydotcom commented 5 years ago

test failure not related to change...merging and thank you!