Giter VIP home page Giter VIP logo

Comments (5)

GYSRichardGUION avatar GYSRichardGUION commented on June 16, 2024 1

Thanks @userquin. It works correctly now

from nuxt.

userquin avatar userquin commented on June 16, 2024

@GYSRichardGUION it is faling in dev and build: in dev using generateSW strategy not resolving workbox-***.js dependency and in build (nuxi generate) generating webmanifest in test folder (app.baseURL = '/test/')

from nuxt.

userquin avatar userquin commented on June 16, 2024

it seems these lines (https://github.com/vite-pwa/nuxt/blob/main/src/module.ts#L67-L71) writting webmanifest using baseURL as folder (removing baseURL seems to fix it):

    const manifestDir = join(nuxt.options.buildDir, 'manifests')
    nuxt.options.nitro.publicAssets = nuxt.options.nitro.publicAssets || []
    nuxt.options.nitro.publicAssets.push({
      dir: manifestDir,
      baseURL: nuxt.options.app.baseURL,
      maxAge: 0,
    })

Running nr dev:preview:build after removing baseURL and building the plugin works: cannot test nr dev:preview:generate since we cannot change baseURL.

I'll try to fix dev server and workbox-***.js asset.

/cc @danielroe

from nuxt.

userquin avatar userquin commented on June 16, 2024

ok, found the problem in vite-plugin-pwa DevPlugin, we need to remove base if present or just don't normalize the id:

imagen

from nuxt.

userquin avatar userquin commented on June 16, 2024

@GYSRichardGUION should be fixed in v0.0.10

from nuxt.

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.