Closed Daniel-Monroy closed 3 years ago
This Plugin Webpack Shell Plugin Next worked for me.
I solved it by using this setup:
Laravel-mix 6
require('laravel-mix-serve');
mix.serve('php artisan lang:js --no-lib');
No need anymore for Webpack Shell Plugin Next.
require('laravel-mix-serve'); mix.serve('php artisan lang:js ');
Don't forget to install this package for this solution to work
npm i laravel-mix-serve
This Plugin Webpack Shell Plugin Next worked for me.
If someone needs some copy-pasta, here you go :)
const WebpackShellPluginNext = require("webpack-shell-plugin-next");
mix.webpackConfig({
plugins: [
new WebpackShellPluginNext({
onBuildStart: {
scripts: [
"php artisan lang:js resources/js/messages.js --quiet",
],
blocking: true,
parallel: false,
},
onBuildEnd: {},
}),
],
});
@duikb00t @mahmoud-ow Thank,save my day
In laravel 8 with Inertia, when executing
npm run dev