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.
webpack-plugin/index.js

24 lines
435 B

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) {
}
}