How to hide webpack output result table ?
See original GitHub issue- Laravel Mix Version: 6.0.6
- Node Version: 14.15.4
- NPM Version: 6.13.7
- Webpack Version: 5.11.1
- cross-env Version: 7.0.3
- OS: Windows 10
Hi,
When i build for production with the command below, i have the webpack results in a table.
npm run production
Where script is:
cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js
How could i hide the table below and just show βCompiled Successfully in xxxx msβ
Laravel Mix v6.0.6
β Compiled Successfully in 13063ms
βββββββββββββββββββββββββββββββββββββ¬βββββββββββ
β File β Size β
βββββββββββββββββββββββββββββββββββββΌβββββββββββ€
β fonts/vendor/@fortawesome/fontawβ¦ β 896 KiB β
βββββββββββββββββββββββββββββββββββββΌβββββββββββ€
β fonts/vendor/@fortawesome/fontawβ¦ β 730 KiB β
βββββββββββββββββββββββββββββββββββββΌβββββββββββ€
β /js/app.js β 310 KiB β
βββββββββββββββββββββββββββββββββββββΌβββββββββββ€
β css/app.css β 290 KiB β
βββββββββββββββββββββββββββββββββββββΌβββββββββββ€
................................
Thanks for you help
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:14
Top Results From Across the Web
How to hide webpack output result table ? #2764 - GitHub
When i build for production with the command below, i have the webpack results in a table. npm run production. Where script is:...
Read more >Output - webpack
The top-level output key contains a set of options instructing webpack on how and where it should output your bundles, assets, and anything...
Read more >Webpack: silence output - Stack Overflow
Basically, it's this module that produces the output. The output by default mostly contains list of assets, and list of modules. You can...
Read more >webpack-dev-server - npm
Start using webpack-dev-server in your project by running `npm i ... Table of Contents ... --no-stats Disable stats output.
Read more >Configuration - Nuxt
Luckily you can run nuxt webpack command from withing your project to output the configuration. Checkout this PR #7029 for more details. Add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue when using a package that copied a few hundred images to the public folder. Mix would just print every single file on every compilation. I invested some time since it was really annoying.
Turns out you can simply add an event hook and overwrite the assets object.
This however prevents mix from displaying any files at all. If you only want to remove unimportant files like images you can just do this.
Since you get the whole target path of the asset you can also filter them based on their destination folder or use a regex to apply a more complex filter logic.
Please create an option to supress it, we really need that. Just upgraded to version 6, and this too talkative output just make nearly unreadable our CI/CD outputs for multiple instances.