Modals and JS functionalities do not work after compiling with npm run dev

0

I have a problem with my JS modals and functionalities of my web application. In summary my code in webpack.mix.js is the following:

  mix.scripts([
    'resources/assets/js/bootstrap.min.js',
    'resources/assets/js/Chart.min.js',
    'resources/assets/js/jquery.min.js',
    'resources/assets/js/pace.min.js',
    'resources/assets/js/popper.min.js',
    'resources/assets/js/template.js'
],
'public/js/app.js')
    .styles([
        'resources/assets/css/font-awesome.min.css',
        'resources/assets/css/simple-line-icons.min.css',
        'resources/assets/css/style.css'
        ],
        'public/css/all.css');

Then when executing the npm terminal run dev the files are generated: app.js and all.css.

I include them all.css in the head and app.js at the end of the body.

When checking the changes, they load the styles but the JS functionalities do not, the modals do not work, the menu does not fold, among others.

I recently modified the variables of the system to be able to include node to my project, but I do not know if while doing so I modified something that I should not.

Please, I need your knowledge to help me ... thank you very much

    
asked by roberthung 10.11.2018 в 15:10
source

0 answers