Migrate JavaScript and Stylesheets to esbuild #95
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.
This pull request includes several changes to update the JavaScript bundling and build process, as well as some related configuration updates. The main changes involve switching from Webpacker to
jsbundling-rails
and updating Node.js and various configuration files accordingly.JavaScript Bundling and Build Process Updates:
Gemfile
: Replacedwebpacker
withjsbundling-rails
for JavaScript bundling.Procfile.dev
: Updated the JavaScript build command to useyarn build --watch
instead ofbin/webpack-dev-server
.app/views/layouts/application.html.erb
: Replacedjavascript_pack_tag
andstylesheet_pack_tag
withjavascript_include_tag
for loading JavaScript and CSS.Node.js and Configuration Updates:
.node-version
: Updated Node.js version from16.15.0
to22.11.0
.README.md
: Updated references from Webpacker and Node 16 tojsbundling-rails
and Node 22.Asset and Stylesheet Management:
app/assets/config/manifest.js
: Updated to link the../builds
directory instead of../stylesheets
.app/assets/stylesheets/application.css
: Removed the old stylesheet manifest file.app/javascript/stylesheets/_bootstrap.scss
: Added custom Bootstrap variables and imported Bootstrap.app/javascript/stylesheets/application.scss
: Moved styles and imports from the removedapplication.css
file.JavaScript File Updates:
app/javascript/application.js
: Added imports for configuration, channels, controllers, and stylesheets.app/javascript/channels/index.js
: Updated to use ES6 import syntax for loading channel files.app/javascript/controllers/index.js
: Updated to use ES6 import syntax for loading controller files.Removal of Webpacker Configuration:
config/webpack/development.js
,config/webpack/environment.js
,config/webpack/production.js
,config/webpack/test.js
, andconfig/webpacker.yml
. [1] [2] [3] [4] [5]