webpack-replace-string-loader
Version:
A simple Webpack loader to replace all string occurrences by another one
26 lines (24 loc) • 472 B
JavaScript
const schema = {
type: 'object',
properties: {
matchingArray: {
type: 'array',
items: {
type: 'object',
properties: {
match: {
type: 'string',
},
replace: {
type: 'string',
},
},
additionalProperties: false,
required: ['match', 'replace'],
},
},
},
required: ['matchingArray'],
additionalProperties: false,
}
export default schema