Support the ongoing development of Laravel.io →
Mix Configuration Blade
Last updated 3 months ago.
1

I use Laravel Mix to compile my assets and combine multiple scripts.

My webpack.mix.js file has code like the following:

mix.scripts([
   'resources/assets/js/vendor/selectize.js',
   'node_modules/pikaday/pikaday.js',
   'resources/assets/js/admin.js'
], 'public/js/admin.js')

See the Working With JavaScript part of Laravel's documentation to learn more.

0

hi, try change mix.scripts to mix.js

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Skylear Skylear splashsky Joined 25 Sep 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.