@aofl/i18n-auto-id-loader

3.14.1 • Public • Published

@aofl/i18n-auto-id-loader

The @aofl/i18n-auto-id-loader generates unique IDs and inserts them as the 1st argument to __, _c fucntion calls in the source files.

Getting started

Run npm i -D @aofl/i18n-auto-id-loader

Then add the loader to your webpack config:

module: {
  rules: [
    {
      test: /\.js$/,
      use: [
        {
          loader: '@aofl/i18n-auto-id-loader',
          options: {
            cache: true
          }
        }
      ],
      enforce: 'pre'
    }
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @aofl/i18n-auto-id-loader

Weekly Downloads

22

Version

3.14.1

License

MIT

Unpacked Size

3.11 kB

Total Files

5

Last publish

Collaborators

  • alexdinari