You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since version 8.4.0, Shakapacker has gained support for Subresource Integrity. Now, we switch to their implementation and drop ours, further improving maintainability.
As part of this effort, we also align the shakapacker.yml with the latest updates and defaults.
Copy file name to clipboardExpand all lines: config/shakapacker.yml
+32-4Lines changed: 32 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ default: &default
5
5
6
6
# You can have a subdirectory of the source_path, like 'packs' (recommended).
7
7
# Alternatively, you can use '/' to use the whole source_path directory.
8
+
# Notice that this is a relative path to source_path
8
9
source_entry_path: /
9
10
10
11
# If nested_entries is true, then we'll pick up subdirectories within the source_entry_path.
@@ -37,12 +38,32 @@ default: &default
37
38
# Select loader to use, available options are 'babel' (default), 'swc' or 'esbuild'
38
39
webpack_loader: 'babel'
39
40
40
-
#Set to true to enable check for matching versions of shakapacker gem and NPM package - will raise an error if there is a mismatch or wildcard versioning is used
41
+
#Raises an error if there is a mismatch in the shakapacker gem and npm package being used
41
42
ensure_consistent_versioning: false
42
43
43
-
# Select whether the compiler will use SHA digest ('digest' option) or most most recent modified timestamp ('mtime') to determine freshness
44
+
# Select whether the compiler will use SHA digest ('digest' option) or most recent modified timestamp ('mtime') to determine freshness
44
45
compiler_strategy: digest
45
46
47
+
# Select whether the compiler will always use a content hash and not just in production
48
+
# Don't use contentHash except for production for performance
0 commit comments