shakacode / webpacker_lite

Slimmed down version of Webpacker with only the asset helpers optimized for, but not requiring, React on Rails
https://github.com/shakacode/react_on_rails
Other
46 stars 6 forks source link

Document using different deploy directories for different node/rails env #4

Closed justin808 closed 7 years ago

justin808 commented 7 years ago

We're often modifying our JS code for the different ENVs...

So if the directory for deployment is:

Production: /public/webpack Development: /public/wepback/development Test: /public/webpack/test

@robwise can comment more on this.

@kaizencodes This is instead of having the manifest have a different extension. Instead, it gets a different directory.

CC: @alexfedoseev

kaizencodes commented 7 years ago

If dev and test has it's own sub dir, why not production?

robwise commented 7 years ago

yeah I agree, why not keep the same pattern? This doesn't need to be inside of webpacker-lite though, you can just use a case statement to set your output dir conditionally on the env?

kaizencodes commented 7 years ago

Right. I tried it setting in the yml works just fine.

justin808 commented 7 years ago

Thanks @kaizencodes and @robwise! I'll close this when we have this documented.