@kkt/loader-raw
TypeScript icon, indicating that this package has built-in type declarations

5.11.1 • Public • Published

@kkt/loader-raw

A loader for webpack that allows importing files as a String. The .md file is loaded by default.

Usage in kkt Projects

npm install @kkt/loader-raw --save-dev

With the loaderOneOf options

// .kktrc.js
export const loaderOneOf = [
  // The .md file is loaded by default.
  require.resolve('@kkt/loader-raw')
];

or

// .kktrc.js
export const loaderOneOf = [
  [require.resolve('@kkt/loader-raw'), {
    ext: ['md', 'txt'],
    esModule: false,
  }]
];

Package Sidebar

Install

npm i @kkt/loader-raw

Weekly Downloads

2

Version

5.11.1

License

MIT

Unpacked Size

5.49 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang