-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache busting #37
Comments
@racse1 What would be a nice think so we don't have to rely on serverside cache busts. However, the only problem I see is; How do we get the references in pug and cshtml files fixed? |
@mi2oon Just an update from me. On a project I'm currently working on we had some weird caching on the back end, so we decided to do cache busting on the front end. The thing is that we use gulp to build Sass and webpack to build JavaScript, so we could've used both Webpack Manifest Plugin and gulp-rev (supports merge of existing manifest file), but to me it looked a bit ugly: we were going to have 2 dependencies for the exactly same thing and there's a race condition (which one creates manifest first; what if you run only As a side note, webpack now supports |
@racse1 I don't mind having style as a webpack entrypoint if it works with postcss and all the first. Sourcemaps were the only thing that bugged me last time I tired that.. let me know if you've run across that problem. Also, how was the speed and build time? |
@mi2oon I'll check source maps... Regarding build times, for watch mode:
Feels fast 😄 Also I'm more than sure there's number of home remedies to reduce build times even further. |
@racse1 Well, if source maps can be confirmed I am all up for this. Also, the only reason why I worried about the build time is because we don't really leverage webpacks own module swapping and internal caching. Looking forward to your verdict. :D |
@mi2oon Hi, I finally found some time to verify the source maps issue. You're right, inline CSS source maps don't really work, which is sad (webpack-contrib/mini-css-extract-plugin#29). Other types of source maps are too slow. I'll see what other options we have (📦 Parcel?)... |
@racse1 Lets hope it gets working.. I might also have a look at it at one point.. Parcel 📦 hmm.. how about rollup 🤣 Jokes aside.. I think it might be the way to go at some point. But for not it just doesn't feel mature enough. |
@mi2oon Couldn't agree more, shall we close this one for the time being or let it hang open? |
@mi2oon Will close this one for now 😄 |
Let's think how we can add cache busting: webpack, gulp-rev?
Another thing is that it'd be nice to use same approach, let's see if that's possible.
And do we actually need to have cache busting included in rammevaerk by default? What do you think?
The text was updated successfully, but these errors were encountered: