Laravel-mix: Feature Request: regex file matching

Created on 19 Mar 2017  路  3Comments  路  Source: JeffreyWay/laravel-mix

it would be nice if we can do things like mix.js('path/to/my/modules/MATCH_ANYTHING/fileExistInEachModule.js');

this would be shorthand for:
mix.js('path/to/my/modules/module1/fileExistInEachModule.js');
mix.js('path/to/my/modules/module2/fileExistInEachModule.js');
....

Most helpful comment

Could it be implemented as an optional package?
For multitennant projects it would be a nice feature.

All 3 comments

I don't think that's a good pattern to use for Webpack builds. You should have one or two entry points at most.

Could it be implemented as an optional package?
For multitennant projects it would be a nice feature.

I don't think that's a good pattern to use for Webpack builds. You should have one or two entry points at most.

What if am combining multiple js files into one entry point, e.g:

mix.js([
  'resources/assets/js/file.js',
  'resources/assets/js/file2.js',
], 'public/js/app.js').version();

Also for Scss see how it's done currently:

mix.sass('resources/assets/sass/skin-black.scss', 'public/css');
mix.sass('resources/assets/sass/playwin.scss', 'public/css');
mix.sass('resources/assets/sass/login.scss', 'public/css');
mix.sass('resources/assets/sass/loading.scss', 'public/css');
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sdebacker picture sdebacker  路  3Comments

stefensuhat picture stefensuhat  路  3Comments

mementoneli picture mementoneli  路  3Comments

mstralka picture mstralka  路  3Comments

rderimay picture rderimay  路  3Comments