Rewrite as a Rails-free Webpack 5 CLI (1.0.0) - #1
Merged
Merged
Conversation
Drop the webpacker/Rails mock and 0.x rake tasks. init now generates webpacker.yml, a webpack.config.js, an entry pack and package.json with major-pinned Webpack 5 tooling; compile/watch/clobber/check/info drive Webpack directly and keep Webpacker's manifest.json output. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LaJESXoiQCpeTydMCJ37uU
Changed Files
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Webpacker is abandoned, and 0.x depended on it via a mocked Rails app. This rewrite removes that layer and drives Webpack 5 directly.
webpacker,tty-command,bundler, and the Rails mock).initgeneratesconfig/webpacker.yml, an editableconfig/webpack/webpack.config.js, an entry pack, and apackage.jsonwith tooling pinned by major version (webpack ^5,webpack-cli ^6, etc.). Existing files are kept unless--force.init,compile,watch,clobber,check,info,version.webpacker.ymlkeys,app/javascript/packsentries, hashed output and a flatpublic/packs/manifest.json.WEBPACKER_ENV,NODE_ENVorRAILS_ENV(defaultdevelopment, as Webpacker did).Breaking changes
webpacker:*rake tasks,Gemfile,Rakefile,bin/rails,config/application.rbandconfig/webpack/loadersare no longer generated; custom loaders move intowebpack.config.js.Test plan
ruby -Ilib -Itest(7 runs, 1 skipped)WEBPACKER_CLI_E2E=1): realinit+ productioncompile, manifest verifiedcheck,info,clobberrake testand the new GitHub Actions workflow have not been run (rake unavailable in the dev container)🤖 Generated with Claude Code
https://claude.ai/code/session_01LaJESXoiQCpeTydMCJ37uU
Generated by Claude Code