samedi 12 septembre 2020

unable to enable hot reload with bootstrap-vue - laravel

I am experimenting with laravel & bootstrap-vue together running on xampp server. I want enable hot reload with vue but its not working. When i run npm run hot it compiles but when i open localhost and make changes to specific vue files it never refreshes.

below is my script in package.json file.

"scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    }

webpack.mix.js

const mix = require('laravel-mix');

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire