@best-shot/json-schema-ref-loader
v0.3.1
Published
`json-schema-ref-parser` for `webpack`
Downloads
442
Maintainers
Readme
@best-shot/json-schema-ref-loader
json-schema-ref-parser
for webpack
.
Installation
npm install @best-shot/json-schema-ref-loader --save-dev
Usage
// example: webpack.config.cjs
module.exports = {
module: {
rules: [
{
test: /\.(ya?ml|json)$/,
type: 'asset/resource',
loader: '@best-shot/json-schema-ref-loader',
options: {
dereference: false
}
},
{
test: /\.ya?ml$/,
loader: 'yaml-loader'
}
]
}
};