Skip to content

Instantly share code, notes, and snippets.

@camaech
Created February 2, 2018 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camaech/a00fa0ae7b50ddd0df11dc2ad4206d15 to your computer and use it in GitHub Desktop.
Save camaech/a00fa0ae7b50ddd0df11dc2ad4206d15 to your computer and use it in GitHub Desktop.
Laravel Module with Laravel Mix for VueJS - webpack.mix.js
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