Shipu/themevel

Laravel Mix() helper doesn't work

elfeffe opened this issue · 7 comments

It tries to reference always to public path

How to use theme_mix?

I have it working, but I had to pass my theme's folder as $manifest path. theme_mix should handle it, no?
Am I using it wrong?

me too same error

Shipu commented
theme_mix('your_asset_path')

or

theme_mix('theme_namespace:your_asset_path')

or

theme_mix('theme_namespace:your_asset_path', 'your manifest directory')

as like as laravel mix helper.

@Shipu can you supply a demo theme? I think the mix-manifest.json also needs some changes

I mean webpack.mix.js
We have to make some changes there too, right?

Shipu commented

@elfeffe i have plan to share demo app. in your mix add full path of theme asset.