webpack-assets
webpack-assets copied to clipboard
Weird URL logic
Let's say I have the following configuration:
Webpack.configure do |config|
if Rails.env.production?
config.cdn_host = "mycdn.com"
config.use_server = false
# ...
else
# ...
end
end
In the views I have
= webpack_js_tag 'index'
The generated HTML will contain relative path <script src="/assets/index.css">
Expected host to be used: <script src="//mycnd.com/index.css">
- Copying the same CDN in the rails assets configuration doesn't make sense
- If you think it makes sense, then expected
cdn_host
option to be named differently:only_static_files_cdn_host