I'm using nwidart's laravel modules to create separate modules for a laravel application, each module has code contained for that module. Currently I'm trying to put the css files relevant to each module into a separate app.scss and then use webpack to move the .scss into the public directory.
I have managed to achieve this by including separate webpack.mix files for each module that moves the css to the main public directory. My problem however is that to achieve this I have to run the command npm run dev in the root of each module folder every-time I want to update the css. Is there an easier way to run all the module webpack.mix.js files in an application or will I have to manually do it each time?
Here is the module package I'm using https://github.com/nWidart/laravel-modules
Also here is an example of how the directories look
--app
----Modules
------Blog -> webpack.mix.js
--------Resources
-----------Assets
-------------Sass -> app.scss
Also here is a copy of webpack.mix.js for the blog module
const { mix } = require('laravel-mix');
require('laravel-mix-merge-manifest');
mix.setPublicPath('../../public').mergeManifest();
mix.sass( __dirname + '/Resources/assets/sass/app.scss', 'css/blog.css');
if (mix.inProduction()) {
mix.version();
}