Support the ongoing development of Laravel.io →
Mix Configuration Blade
Last updated 2 years ago.

saberyjs liked this thread

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!

Eventy

Your banner here too?

Skylear splashsky Joined 25 Sep 2018

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.