1234567891011121314 |
- class ExamplePlugin {
- constructor(props) {
- this.props = props;
- }
- apply(compiler) {
- compiler.plugin("run", (compiler, callback) => {
- console.log("Webpack is running our plugin", this.props.msg);
- callback();
- });
- }
- }
- module.exports = ExamplePlugin;
|