custom-plugins.js 241 B

1234567891011
  1. //自定义插件地方
  2. const compilerHooks = [
  3. {
  4. apply: (compiler) => {
  5. compiler.hooks.invalid.tap('invalid', function () {
  6. console.log('小李编译中...');
  7. });
  8. },
  9. },
  10. ];
  11. module.exports = { compilerHooks };