Skip to content

Commit 9574f3f

Browse files
committed
Revert asset loading from Nova::mix() to Nova::script()
The switch to Nova::mix() in 5.0.1 requires a mix-manifest.json file in the dist directory, which doesn't exist. This causes the field to not render at all in index, detail, and form views. Reverting to Nova::script() which directly loads the compiled JS file. Fixes #184
1 parent f87a6e9 commit 9574f3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/TagsFieldServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class TagsFieldServiceProvider extends ServiceProvider
1212
public function boot()
1313
{
1414
Nova::serving(function (ServingNova $event) {
15-
Nova::mix('nova-tags-field', __DIR__.'/../dist/mix-manifest.json');
16-
//Nova::style('nova-tags-field', __DIR__.'/../dist/css/field.css');
15+
Nova::script('nova-tags-field', __DIR__.'/../dist/js/field.js');
1716
});
1817

1918
$this->app->booted(function () {

0 commit comments

Comments
 (0)