You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
435 B
24 lines
435 B
2 years ago
|
import { validate } from 'schema-utils'
|
||
|
|
||
|
// schema for options object
|
||
|
const schema = {
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
test: {
|
||
|
type: 'string',
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default class HappySiteWebpackPlugin {
|
||
|
constructor(options = {}) {
|
||
|
validate(schema, options, {
|
||
|
name: 'Hello World Plugin',
|
||
|
baseDataPath: 'options',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
apply(compiler) {
|
||
|
|
||
|
}
|
||
|
}
|