Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Note from 5 March 2020

  • Nicolas Hoizey
  • 5 March 2020
  • Eleventy, JavaScript, PWA, Rollup, Webpack, Workbox
  • 11 reactions

Now that I use #Rollup to generate my Service Worker with #Workbox in #Eleventy, I guess I should try to remove #Webpack from #JavaScript assets bundling… 😅

11 reactions

6 likes

  1. Stack Five avatar
  2. Fullstack Developer avatar
  3. RxJS Live! London avatar
  4. Jeff Posnick avatar
  5. bud parr avatar
  6. Sam Vloeberghs avatar

2 reposts

  1. JSBot avatar
  2. Javascript Digest avatar

3 replies

  1. Nicolas Hoizey avatar Nicolas Hoizey
    @RollupJS@twitter.com @workboxjs@twitter.com @eleven_ty@twitter.com First question: how can I generate a JS bundle with a hashed filename with @RollupJS@twitter.com, and use this hashed name in my @eleven_ty@twitter.com pages?
    • 5 March 2020, 09:03
    • Source
  2. Zell Liew 🤗 avatar Zell Liew 🤗
    Yep I did. I used Gulp in the process since I already need Gulp for my workflow.

    But I don't use workbox. Would that work for you?
    • 5 March 2020, 15:20
    • Source
  3. Nicolas Hoizey avatar Nicolas Hoizey
    I use Rollup to build the target Service Worker including Workbox libs, but workbox-cli to inject precache assets list, so I guess I could use the same Rollup for other JavaScript assets bundling.
    • 5 March 2020, 18:52
    • Source
  • Older: Note from 4 March 2020
  • Newer: Note from 6 March 2020

Related contents with similar topics

  1. Note from 31 May 2023

    • Nicolas Hoizey
    • 31 May 2023
    • PWA, Service Worker, Workbox
    • 3 reactions

    Who still thinks writing a Service Worker for basic features (performance with cache, offline fallback) is cumbersome?

    Using #Workbox recipes make it so easy!

    Here's the Service Worker for https://pack11ty.dev 😍

    https://github.com/nhoizey/pack11ty/blob/main/src/assets/js/service-worker.js

  2. Note from 13 May 2023

    • Nicolas Hoizey
    • 13 May 2023
    • Eleventy, esbuild, Service Worker, Workbox

    If someone is creating service workers with #Workbox recipes and injectManifest, a build with #esbuild, and doesn't have any issues, I'm interested! 😅

    I have a very strange issue:

    https://github.com/GoogleChrome/workbox/issues/3207

    Bonus points if this is with #Eleventy

  3. Note from 13 October 2020

    • Nicolas Hoizey
    • 13 October 2020
    • Eleventy, Pack11ty, Rollup, Sass
    • 14 reactions

    Inspired by @5t3ph's 11ty-sass-skeleton, my own Pack11ty #Eleventy template project now uses Dart Sass CLI and a few postcss plugins for Sass instead of the previous unnatural Rollup configuration.

  4. Note from 22 April 2020

    • Nicolas Hoizey
    • 22 April 2020
    • esviji, Netlify, Rollup, Workbox
    • 2 reactions

    Ok, time to really say goodbye to Application Cache…

    4 years and a half after opening, this issue for my game #esviji is now closed! 🎉

    https://github.com/esviji/esviji/issues/101#issuecomment-617440727

    Thanks to #Workbox and #Rollup, it's been easier than I feared. 🙏

    Oh… and I also moved to #Netlify … 😁

    Want to play? Let's play!

  5. Note from 2 March 2020

    • Nicolas Hoizey
    • 2 March 2020
    • PWA, Rollup, Service Worker, Workbox
    • 2 reactions

    Tried to write a fresh new Service Worker with #Workbox 5 and #Rollup (first time ever), almost copy/pasted from what @jeffposnick did in https://github.com/GoogleChromeLabs/so-pwa but I get a strange error reporting mixed content… 😥

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy