GithubHelp home page GithubHelp logo

benmccann / pwa-sveltekit-vite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from userquin/pwa-sveltekit-vite

0.0 1.0 0.0 911 KB

SvelteKit PWA Vite 3.1

JavaScript 34.63% TypeScript 3.54% CSS 9.75% HTML 3.15% Svelte 48.92%

pwa-sveltekit-vite's Introduction

SvelteKit, Vite 3.1 and PWA Plugin

Latest Changes: 2022-09-07

Updated PWA Plugin with vite-pwa/vite-plugin-pwa#370 local copy (we need to fix types).

Added logic that will go to the SvelteKit integration: check Vite config file.

WARNING: SvelteKit not updated, failing post install script when installing latest version (474).

WARNING: current version failing on build running the adapter, I need to fix it.

2022-08-31

UPDATED to Vite 3.1.0-beta1 and latest SvelteKit 1.0.0-next.454:

  • hacking VitePluginPWA to configure the new Rollup sequential hook in closeBundle: check the vite.config.js module (DON'T DO THIS, we're preparing a new version to support Vite 3.1)
  • migrated project with pnpm dlx svelte-migrate routes
  • requires node 16.14+: tested with node 16.17.0 LTS.

OLDER ENTRIES

WARNING - DON'T USE THIS: we're awating Rollup and Vite to add sequential parallel hooks support:

Finally!, it works.

Using a local build of the PWA PR: vite-pwa/vite-plugin-pwa#327.

If you had a previous version, just remove the node_modules and run pnpm install.

To test it just run:

  • pnpm run build && pnpm run preview or
  • pnpm run build && pnpm run https to test with https

pwa-sveltekit-vite's People

Contributors

userquin avatar

Watchers

 avatar

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.