style-resources-loader
Version:
CSS processor resources loader for webpack
41 lines (38 loc) • 929 B
text/typescript
import type validate from 'schema-utils';
type Schema = Parameters<typeof validate>[0];
export const schema: Schema = {
type: 'object',
properties: {
patterns: {
anyOf: [
{type: 'string'},
{
type: 'array',
uniqueItems: true,
items: {
type: 'string',
},
},
],
},
injector: {
anyOf: [
{
type: 'string',
enum: ['prepend', 'append'],
},
{
instanceof: 'Function',
},
],
},
globOptions: {
type: 'object',
},
resolveUrl: {
type: 'boolean',
},
},
required: ['patterns'],
additionalProperties: false,
};