# Deployment Webpacker hooks up a new `webpacker:compile` task to `assets:precompile`, which gets run whenever you run `assets:precompile`. If you are not using sprockets you can manually trigger `bundle exec rails webpacker:compile` during your app deploy. The `javascript_pack_tag` and `stylesheet_pack_tag` helper method will automatically insert the correct HTML tag for compiled pack. Just like the asset pipeline does it. By default the output will look like this in different environments: ```html ``` ## Heroku Heroku installs yarn and node by default if you deploy a rails app with Webpacker so all you would need to do: ```bash heroku create shiny-webpacker-app heroku addons:create heroku-postgresql:hobby-dev git push heroku master ``` ## CDN Webpacker out-of-the-box provides CDN support using your Rails app `config.action_controller.asset_host` setting. If you already have [CDN](http://guides.rubyonrails.org/asset_pipeline.html#cdns) added in your rails app you don't need to do anything extra for webpacker, it just works.