shashank_90's avatar

Turn off imported/required assets publishing and logging on each save operation

Hi, i am trying to load assets during compilation by importing images and html templates while compiling with webpack using laravel mix, however i noted it logs all assets each time and logs it in console which looks too weird as i assumed it would only log whenever some of the assets changed.

e.g. i am importing background image from my node package (eventually it's path) like this.

import background7 from '../images/backgrounds/maskgroup7.png';

and due to the fact that webpack config's publicPath is public in laravel, all assets are being copied(published) over there which is ofcourse required for wbepack path to work to be able to get there and place them into public/images directory and can be obtained from server http path of public/images directory.

this is all good but i am not getting why all paths and even every chunk (dynamically imported things) are logged into console each time i hit save button in my file.

I only want to do compilation like native webpack does and not log everything in console. I am also not sure if webpack even publishes on each save operation or not. |

I have almost 10 files in compilation pipeline and in one of them assets are required which all are logged each time i compile while running npm run watch operation.

How to turn off both this assets publishing each time and always logging into console behavior permanently?

0 likes
0 replies

Please or to participate in this conversation.