Skip to content

Commit 04f66c7

Browse files
authored
Move cache_path (and compilation_digest_path) out of default Rails.cache.cache_path (#3002)
1 parent 81567eb commit 04f66c7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/install/config/webpacker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default: &default
55
source_entry_path: entrypoints
66
public_root_path: public
77
public_output_path: packs
8-
cache_path: tmp/cache/webpacker
8+
cache_path: tmp/webpacker
99
webpack_compile_output: true
1010

1111
# Additional paths webpack should look up modules

test/configuration_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_public_manifest_path
4444
end
4545

4646
def test_cache_path
47-
cache_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/tmp/cache/webpacker").to_s
47+
cache_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/tmp/webpacker").to_s
4848
assert_equal @config.cache_path.to_s, cache_path
4949
end
5050

test/mounted_app/test/dummy/config/webpacker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default: &default
44
source_path: app/packs
55
source_entry_path: entrypoints
66
public_output_path: packs
7-
cache_path: tmp/cache/webpacker
7+
cache_path: tmp/webpacker
88

99
# Additional paths webpack should look up modules
1010
# ['app/assets', 'engine/foo/app/assets']

test/test_app/config/webpacker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default: &default
55
source_entry_path: entrypoints
66
public_root_path: public
77
public_output_path: packs
8-
cache_path: tmp/cache/webpacker
8+
cache_path: tmp/webpacker
99
webpack_compile_output: false
1010

1111
# Additional paths webpack should look up modules

0 commit comments

Comments
 (0)