shakapacker
Advanced tools
Changelog
[v6.4.0] - June 2, 2022
nested_entries
to use nested entries. This was the default prior to v6.0. Because entries maybe generated, it's useful to allow a generated
subdirectory. PR 121 by justin808.Allow v10 of compression-webpack-plugin
as a peer dependency. PR 117 by aried3r.
Remove assets:precompile task enhancement #131 by James Herdman: Removed the yarn:install
Rake task, and no longer enhance assets:precompile
with said task. These tasks were used to ensure required NPM packages were installed before asset precompilation. Going forward you will need to ensure these packages are already installed yourself. Should you wish to restore this behaviour you'll need to reimplement the task in your own application.
Changelog
[v6.3.0] - May 19, 2022
Changelog
[v6.3.0-rc.1] - April 24, 2022
Note: Rubygem is 6.3.0.pre.rc.1 and NPM is 6.3.0-rc.1.
Remove Loose mode from the default @babel-preset/env configuration. PR 107 by Jeremy Liberman.
Loose mode compiles the bundle down to be compatible with ES5, but saves space by skipping over behaviors that are considered edge cases. Loose mode can affect how your code runs in a variety of ways, but in newer versions of Babel it's better to use Compiler Assumptions to have finer-grained control over which edge cases you're choosing to ignore.
This change may increase the file size of your bundles, and may change some behavior in your app if your code touches upon one of the edge cases where Loose mode differs from native JavaScript. There are notes in the linked PR about how to turn Loose mode back on if you need to, but consider migrating to Compiler Assumptions when you can. If you have already customized your babel config, this change probably won't affect you.
webpacker_precompile
setting to webpacker.yml
to allow controlling precompile behaviour, similar to existing ENV["WEBPACKER_PRECOMPILE"]
variable. PR 102 by Judahmeek.append_javascript_pack_tag
helper. Allows for easier usage and coordination of multiple javascript packs. PR 94 by tomdracz.Use last modified timestamps rather than file digest to determine compiler freshness. PR 97 by tomdracz.
Rather than calculating SHA digest of all the files in the paths watched by the compiler, we are now comparing the modified time of the manifest.json
file versus the latest modified timestamp of files and directories in watched paths. Unlike calculating digest, which only looked at the files, the new calculation also considers directory timestamps, including the parent ones (i.e. config.source_path
folder timestamp will be checked together will timestamps of all files and directories inside of it).
This change should result in improved compiler checks performance but might be breaking for certain setups and edge cases. If you encounter any issues, please report them at https://github.com/shakacode/shakapacker/issues.
Bump dependency versions in package.json to address security vulnerabilities. PR 109 by tomdracz.
Add webpack-dev-server
as peerDependency
to make its usage clear. PR 109 by tomdracz.
Changelog
[v6.2.0] - March 22, 2022
ensure_consistent_versioning
configuration variable. PR 51 by tomdracz.dev_server.inline_css: bool
config option to allow for opting out of style-loader and into mini-css-extract-plugin for CSS HMR in development. PR 69 by cheald.Changelog
[v6.1.0] - February 4, 2022