Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include hashes in production builds of assets #10125

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Apr 11, 2024

draft, as this only does it for core, not plugins

@@ -153,6 +153,12 @@ const coreConfig = function() {
'webpack/assets/javascripts/bundle.js'
);
config.context = path.resolve(__dirname, '..');
if (config.mode == 'production') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, this is always true, and I don't understand it.

@evgeni
Copy link
Member Author

evgeni commented Apr 11, 2024

Okay, maybe I'm not as smart as I thought…

#<ActionController::RoutingError: No route matches [GET] "/webpack/reactExports.js">

@evgeni
Copy link
Member Author

evgeni commented Apr 11, 2024

I feel like I need webpack_asset_paths, but that was deprecated :/

}
config.output = {
path: outputPath,
publicPath: '/webpack/' + pluginName + '/',
filename: chunkFilename,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am almost sure this will break plugins, but I've not tested it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant