Skip to content

Conversation

@stevegeek
Copy link
Contributor

The following is a proposed change that could make the default webpack config slightly more generic.

It is a small tweak to the installed config that changes the sourceMapFilename template to [file].map.

This makes things easier if the config is expanded to include css extraction say.

For example, if mini-css-extract-plugin is used with css-loader / sass-loader then the resulting source map is named correctly (application.css.map for example) without having to realise/remember the sourceMapFilename needs changing.

@rstacruz
Copy link
Contributor

rstacruz commented Apr 5, 2022

This is a great idea!

@dhh dhh merged commit 0c8b321 into rails:main Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants