How to use @rushstack/localization-plugin - 1 common examples

To help you get started, we’ve selected a few @rushstack/localization-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / build-tests / localization-plugin-test / build.js View on Github external
const process = require('process');

const { LocJsonPreprocessor } = require('@rushstack/localization-plugin');

function executeCommand(command) {
  console.log('---> ' + command);
  child_process.execSync(command, { stdio: 'inherit' });

// Clean the old build outputs
console.log(`==> Starting build.js for ${path.basename(process.cwd())}`);

  srcFolder: path.resolve(__dirname, 'src'),
  generatedTsFolder: path.resolve(__dirname, 'temp', 'loc-json-ts')

// Run Webpack
executeCommand('node node_modules/webpack-cli/bin/cli');

console.log(`==> Finished build.js for ${path.basename(process.cwd())}`);


@rushstack/localization-plugin has been renamed to @rushstack/webpack4-localization-plugin.

Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis

Popular @rushstack/localization-plugin functions

Similar packages