Skip to content

Webpack Plugin

Terminal window
npm install @localive/webpack

Add LocaliveWebpackPlugin to your Webpack config:

const { LocaliveWebpackPlugin } = require('@localive/webpack');
module.exports = {
plugins: [
new LocaliveWebpackPlugin({
translationsPath: 'src/locales',
locales: ['en', 'fr', 'de'],
defaultLocale: 'en',
}),
],
};

Same options as the Vite plugin. See Vite Plugin for the full options list.