Shipu / themevel

Theme and asset management for laravel
Creative Commons Zero v1.0 Universal
347 stars 67 forks source link

Laravel Mix() helper doesn't work #44

Closed elfeffe closed 4 years ago

elfeffe commented 4 years ago

It tries to reference always to public path

elfeffe commented 4 years ago

How to use theme_mix?

elfeffe commented 4 years ago

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?

supryantowp commented 4 years ago

me too same error

Shipu commented 4 years ago
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.

elfeffe commented 4 years ago

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

elfeffe commented 4 years ago

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

Shipu commented 4 years ago

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