Created
February 2, 2018 16:58
-
-
Save camaech/a00fa0ae7b50ddd0df11dc2ad4206d15 to your computer and use it in GitHub Desktop.
Laravel Module with Laravel Mix for VueJS - webpack.mix.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
let child_process = require('child_process'); | |
mix.js('Resources/js/core-app.js', 'Assets/js') | |
.then(() => { | |
child_process.exec('php artisan module:publish', {cwd: '../../'}, function(error, stdout, stderr){ | |
if (error) throw error; | |
console.log(stdout, stderr); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment