@sebmck Becauuuuuse in my ES6 stuff I would like to drop some code if I’m in prod vs dev :) Was just wondering how best to do that.
-
-
Replying to @aerotwist
@aerotwist@sebmck Uglify has Dead-code Elimination.1 reply 0 retweets 0 likes -
Replying to @aerotwist
@aerotwist There's also https://github.com/babel-plugins/babel-plugin-inline-environment-variables … and https://github.com/babel-plugins/babel-plugin-dead-code-elimination … Docs are bad but the names should give away what they do.@rygu2 replies 0 retweets 1 like -
Replying to @aerotwist
@aerotwist Not entirely sure what you want to do. Do you want compile options to change depending on your env or...@rygu1 reply 0 retweets 0 likes -
Replying to @sebmck
@aerotwist Do you want environment variables referenced in your code to be changed?@rygu2 replies 0 retweets 0 likes -
Replying to @aerotwist1 reply 0 retweets 0 likes
-
Replying to @sebmck1 reply 0 retweets 0 likes
@aerotwist No problem! Should work with all of the integrations too (gulp etc). Let me know if you have any trouble/further questions @rygu
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 