Skip to content

Instantly share code, notes, and snippets.

@kevinhq
Created July 15, 2020 05:21
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Step-by-Step guide on how to move from Sprockets to Webpacker - production.js
// config/webpack/production.js
process.env.NODE_ENV = 'production';
const environment = require('./environment');
module.exports = environment.toWebpackConfig();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment