1.1.0 • Published 3 years ago

@lcdev/toml-loader v1.1.0

Weekly downloads
278
License
MPL-2.0
Repository
github
Last release
3 years ago

TOML Loader

Licensed under MPL 2.0 Build Status npm

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

yarn add @lcdev/toml-loader@1

# or for npm

npm i @lcdev/toml-loader@1
// in your loaders:
module: {
  rules: [
    {
      test: /\.toml$/,
      use: { loader: '@lcdev/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

1.1.0

3 years ago

1.0.5

4 years ago

1.0.3

4 years ago