@kkt/loader-raw
v5.11.1
Published
A loader for webpack that allows importing files as a String.
Downloads
60
Readme
@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,
}]
];