-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config.webpacker_precompile #102
Conversation
6380c56
to
3e08b80
Compare
lib/tasks/webpacker/clean.rake
Outdated
@@ -11,7 +11,7 @@ namespace :webpacker do | |||
end | |||
end | |||
|
|||
skip_webpacker_clean = %w(no false n f).include?(ENV["WEBPACKER_PRECOMPILE"]) | |||
skip_webpacker_clean = %w(no false n f).include?(ENV["WEBPACKER_PRECOMPILE"]) || Webpacker.config.dont_enhance_asset_precompile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's dry up this logic
500ae0f
to
622d189
Compare
8d46cce
to
2434a61
Compare
ENV["WEBPACKER_PRECOMPILE"] = "yes" | ||
|
||
assert Webpacker.config.webpacker_precompile? | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to test the config file setting, if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good, might be as simple as setting different value for one of the envs in the test app for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One note for me and +1 on bits noted by @justin808
@Judahmeek any ETA for getting this completed? |
2bb1404
to
ac0f634
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -7,6 +7,8 @@ default: &default | |||
public_output_path: packs | |||
cache_path: tmp/webpacker | |||
webpack_compile_output: true | |||
# See https://github.com/shakacode/shakapacker#development | |||
webpacker_precompile: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…precompile' original from shakacode/shakapacker#102
Enables the use of a webpacker.yml config value as a complement to
ENV["WEBPACKER_PRECOMPILE"]