Understanding webpacker.yml

Though Webpacker adds a layer of "convention over configuration" in regards to webpack integration with Rails, the need for configuration remains. In this post, I'll describe the role of the webpacker.yml file for Webpacker configuration.One of Webpacker's primary roles is helping Rails communicate with webpack.Here are some things both Rails and webpack need to know:​Where are the source files located?What file types should be bundled?What's the destination for the bundle files?Should CSS be inserted dynamically via JavaScript or output as a separate file?What port should the webpack-dev-server listen on in development?That's where webpacker.yml comes in.
Understanding webpacker.yml #ruby #rubydeveloper #rubyonrails #webpacker.yml https://rubyonrails.ba/single/understanding-webpacker-yml

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles