Skip to content

Instantly share code, notes, and snippets.

@AdamRamberg
Created August 28, 2019 17:32
Show Gist options
  • Save AdamRamberg/d0fe3777db2711b013cbaa3b6e11612b to your computer and use it in GitHub Desktop.
Save AdamRamberg/d0fe3777db2711b013cbaa3b6e11612b to your computer and use it in GitHub Desktop.
Translate your React app with ease using Facebook's own framework (FBT) - webpack.config.js
const path = require('path');
module.exports = {
entry: [
path.join(process.cwd(), 'src/i18n/init.js'), // Init i18n framework
path.join(process.cwd(), 'src/index.js'), // App entry
],
// Add more config here...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment