0.2.0 • Published 4 years ago

vtranslit-scheme-loader v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

vtranslit-scheme-loader

Webpack loader to convert vtranslit schemes written in YAML to js object.

Usage

Install:

$ npm i vtranslit-scheme-loader

In 'webpack.config.js':

{
  "...": "...",

  module: {
    rules: [
      test: /.ya?ml$/
      {
        use: [ "vtranslit-scheme-loader"],
      },
    ],
  },
}

Note: This outputs js code in ES6. So, you might want to use Babel to convert it to ES5. The output is not in ES6. So, no need to use Babel any more.