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.
 
 

19 lines
441 B

'use strict';
const autoload = require('./../autoload');
const basePath = require('./../path');
let time = null;
class CreatedComponentsPlugin {
constructor() {}
apply(compiler) {
if (time) {
clearTimeout(time);
time = null;
}
time = setTimeout(() => {
autoload.createAutoload(basePath.buildComponentsDirectory, ['vue'], 'array', 'Components');
}, 30);
}
}
module.exports = CreatedComponentsPlugin;