question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not clean old versioned file if using lazy load

See original GitHub issue

if I use lazy load in Vue like

'component': () => System.import('./component.vue')

webpack will generate app.xxxxxx.js and 0.yyyyyy.js (chunk file) when webpack build next time, it will remove app.xxxxxx.js, generate new app.zzzzzz.js and 0.aaaaaa.js, but not removing old 0.yyyyyy.js file. since laravel-mix can remove app.xxxxxx.js file, I’d like to know if it’s possible to remove old chunked js file as well?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Lorempn2commented, Nov 27, 2017

Hi, I am experiencing the same issue and I’m on the latest version of Mix. My old chunk files are not removed. This is in my mix config:

.webpackConfig({ output: { publicPath: "/", chunkFilename: "js/[name]-[hash].js" } })

Thanks.

0reactions
DannyFelizcommented, Nov 28, 2018

Still having this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lazy Loading Images – The Complete Guide - ImageKit.io
Everything about Image Lazy loading - what is it, why is it important, how to implement lazy loading of images and the best...
Read more >
Lazy loading video - web.dev
This post explains lazy loading and the options available to you when lazy loading video.
Read more >
A Deep Dive into Native Lazy-Loading for Images and Frames
This way, it's possible to load a tiny file size, low-quality image file on page load and later replace it with a full-sized...
Read more >
How to overcome loading chunk failed with Angular lazy ...
You use global error handling and force app to reload if chunks failed. import {ErrorHandler, Injectable} from '@angular/core'; @Injectable ...
Read more >
verlok/vanilla-lazyload - GitHub
LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found