HOME


sh-3ll 1.0
DIR:/proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/laravel-mix/src/components/
Upload File :
Current File : //proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/laravel-mix/src/components/Copy.js
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;