Skip to content

Antoinebr/Pokedex-PWA

Repository files navigation

pokedex-pwa

A Vue.js project

This project is a fork from Louisti Pokedex rewritten with Vue.js as a PWA

Live project

pokedex.antoinebrossault.com

caching

   // service worker caching
    new SWPrecacheWebpackPlugin({
      cacheId: 'pokedex-pwa',
      filename: 'service-worker.js',
      staticFileGlobs: [
        'dist/**/*.{js,html,css}',
        'dist/static/img/*/*.png'
      ],
      minify: true,
      stripPrefix: 'dist/',
      runtimeCaching: [
        {
          urlPattern:  new RegExp('^https://pokedex.antoinebrossault.com/api/'),
          handler: "networkFirst"
        },
        {
          urlPattern:  new RegExp('^http://localhost:7878/pokedex-pwa/api/'),
          handler: "networkFirst"
        },

      ],
    }),

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Serve

Use docker

docker-compose up -d 

About

This project is a fork from @Louisti rewritten with Vue.js as a PWA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published