UNPKG

laravel-mix

Version:

Laravel Mix is an elegant wrapper around Webpack for the 80% use case.

23 lines (19 loc) 414 B
let CopyFilesTask = require('../tasks/CopyFilesTask'); class Copy { /** * The API name for the component. */ name() { return ['copy', 'copyDirectory']; } /** * Register the component. * * @param {*} from * @param {string} to */ register(from, to) { Mix.addTask(new CopyFilesTask({ from, to: new File(to) })); } } module.exports = Copy;