We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The url loader example in the docs here:
https://github.com/rails/webpacker/blob/master/docs/webpack.md#url-loader
Is not working anymore due to the removal of assetHost from #1107
What would be the proper replacement with the new webpacker version?
The text was updated successfully, but these errors were encountered:
Yeah the documentation needs updating. You don't need to specify publicPath.
publicPath
// config/webpack/loaders/url.js module.exports = { test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/], use: [{ loader: 'url-loader', options: { limit: 10000, name: '[name]-[hash].[ext]' } }] } // config/webpack/environment.js const { environment } = require('@rails/webpacker') environment.loaders.prepend('url', url)
Sorry, something went wrong.
No branches or pull requests
The url loader example in the docs here:
https://github.com/rails/webpacker/blob/master/docs/webpack.md#url-loader
Is not working anymore due to the removal of assetHost from #1107
What would be the proper replacement with the new webpacker version?
The text was updated successfully, but these errors were encountered: