Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Webpacker, It-Just-Works, But How? by Justin Gordon How does the Webpacker gem provide "it-just-works" webpack integration with Rails? That simplicity did not come easily. The rich functionality, complexity, and rapid evolution of the webpack ecosystem necessitated extension points beyond a simple Ruby config file. Yet you need to know almost nothing about webpack to leverage the modern JavaScript ecosystem. But what if you want to extend the standard configuration? What information might help you upgrade webpack and webpacker in the future? This talk will explain the magical plumbing of Webpacker so you can leverage the webpack ecosystem on your terms. For the talk slides, email Justin at justin@shakacode.com _________ Justin has been a passionate user of webpack since early 2014 when he just could not stand copy-pasting one more jQuery file into his Rails project. In 2015, he created the gem "React on Rails," which integrated server-side rendered React and Webpack with Rails long before the Webpacker gem. These days, as CEO of ShakaCode.com, he helps companies optimize their Rails websites. He and his ShakaCode team also build Rails apps with modern front-ends, including their startup app, HiChee.com.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk 'Webpacker, It-Just-Works, But How?' presented by Justin Gordon at RailsConf 2020, the speaker explores the intricacies of integrating the Webpacker gem with Ruby on Rails to facilitate seamless Webpack integration. Gordon, an experienced developer in both Rails and Webpack since 2014, discusses the evolution of Webpack and its accompanying complexities, establishing that despite Webpack's rich functionality, effective use within Rails requires minimal user intervention. He aims to demystify how Webpacker orchestrates tools and configurations to deliver a smooth development experience for both the developers and end-users. Key points covered in the talk include: - **Objectives of Webpacker**: Ensuring performance for end-users and ease of use for developers, emphasizing the importance of minimal configuration and an optimal experience across environments. - **Key Functionalities**: Introduction to the main components of Webpacker, including view helpers, asset fingerprinting, bundle splitting, and the use of Webpack dev server for an improved development cycle. - **Understanding the Flow**: A detailed explanation of how Rails Webpacker orchestrates Webpack to produce manifest JSON along with static assets, including JavaScript and CSS files, which are essential for the application's functioning. - **Development Environments**: Discussing the challenges in managing different Rails environments (development, production) and how Webpacker accommodates these through its setup. - **Effective Configuration**: Gordon illustrates how environmental configurations (development.js, production.js) are crucial for customizing the build process without overcomplicating the setup. - **Hot Module Replacement & Optimization**: The use of Webpack features such as hot reloading and code splitting to improve user experience and significantly reduce load times for web applications. - **Deployment Considerations**: The process of deploying assets using Rake tasks and how Webpacker enhances the asset pre-compilation step, ensuring that required resources are available in production. Gordon punctuates his discussion with real-world examples from his consulting experiences, underscoreing the importance of understanding Webpack's configuration as a foundation for managing JavaScript assets effectively. Additionally, he offers practical advice on version management and custom configurations that can help developers avoid common pitfalls associated with updates and dependencies. The main takeaway from the session is that by harnessing the capabilities of Webpacker, developers can significantly streamline their Rails applications’ integration processes with Webpack, while minimizing the configuration burden. By understanding the underlying mechanics, developers can better control their development and production setups, ensuring optimal performance and maintainability.
Suggest modifications
Cancel