1.0.0 • Published 5 years ago

@servall/toml-loader v1.0.0

Weekly downloads
1
License
MPL-2.0
Repository
-
Last release
5 years ago

TOML Loader

Licensed under MPL 2.0

Webpack loader for TOML files. Supports the latest TOML spec, and provides named exports.

yarn install @servall/toml-loader
// in your loaders:
module: {
  rules: [
    {
      test: /\.toml$/,
      use: { loader: '@servall/toml-loader' },
    },
  ],
},

Usage

Supports default export with all file contents, and named exports.

import contents from './my-file.toml';
import { namedExport } from './my-other-file.toml';

Alternatives