Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

sw-precache freezes on vueJS build #379

@NickHatBoecker

Description

@NickHatBoecker

Hey guys,

I have a problem since I installed sw-precache for my vueJS application.
When running npm run serve (alias for vue-cli-service serve) it tries to start the dev server but then freezes with 98% after emitting swPrecacheTotal precache size is about 12.5 kB for 4 resources.

It always freezes at 98% and this happens on every try. When I remove sw-precache everything is working. Any ideas?

vue.config.js:

const SWPrecache = require('sw-precache-webpack-plugin')

module.exports = {
    configureWebpack: {
        plugins: [
            new SWPrecache({
                cacheId: 'nhb-year-in-pixels',
                filepath: 'dist/service-worker.js',
                staticFileGlobs: [
                    'dist/*',
                    'dist/**/*',
                ],
                stripPrefix: 'dist/',
                maximumFileSizeToCacheInBytes: 3097152,
            })
        ],
    }
}

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions