Webpacker (with Rails)

Last updated 4 months ago

In addition to supporting a standard webpack configuration, we also are compatible with the Ruby on Rails webpacker gem.

You can add the plugin configuration in config/webpack/environment.js

const { environment } = require('@rails/webpacker')
new PacktrackerPlugin({
project_token: '<your packtracker project token>',
upload: true
module.exports = environment

This is the only specific difference in setting up a project with us using the webpacker gem with Rails, please see the rest of our documentation below for more detail.