How import a external js library in laravel?

Viewed 24926

I've downloaded a base template from this GitHub Repo based on the following dashboard gentella.

I install the inputmask library with the following command:

npm install inputmask --save

But reading and reading, I'm not sure which is the correct step to integrate the same into an HTML page, I read about mix, saas, Compiling Assets (Laravel Mix).

I try with this:

<script type="text/javascript" src="{{ URL::asset('js/inputmaskpath.js') }}"></script>

and this:

@section('scripts')
    {{ Html::script(mix('assets/js/inputmask.js')) }}
@endsection

The question finally is, how import inputmask into my HTML page and what it is the correct path?

1 Answers
Related