Code Monkey home page Code Monkey logo

Comments (6)

mick-feller avatar mick-feller commented on May 20, 2024 3

thanks a lot! that cleared it up, I appreciate you!

from serwist.

DuCanhGH avatar DuCanhGH commented on May 20, 2024

Hmm, clean: true isn't an option because that will probably wipe out the whole public folder should swDest points to a file in the public folder, e.g "public/sw.js".

Will consider forking this plugin! It hasn't been maintained for so long.

from serwist.

mick-feller avatar mick-feller commented on May 20, 2024

yeah that plugin is abandoned due to that clean: true piece in webpack hence me asking.

from serwist.

mick-feller avatar mick-feller commented on May 20, 2024

@DuCanhGH so i was thinking about this a little bit last night, and why don't you clean those files outside of webpack? You could maybe get rid of the webpack plugin all together and use either del or rimraf and run a delete right here:

https://github.com/serwist/serwist/blob/main/packages/next/src/index.ts#L18

and don't rely on webpack for that at all, just a thought?

from serwist.

DuCanhGH avatar DuCanhGH commented on May 20, 2024

@mick-feller good idea! That seems to make for a better choice. We will probably use the native fs.rm though.

from serwist.

DuCanhGH avatar DuCanhGH commented on May 20, 2024

Removed in 9.0.0-preview.10 :)

from serwist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.