goldhand / goldhand/sw-precache-webpack-plugin

cannot cache all files in specific cases

Open
#104 7 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.4k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

## **BEFORE YOU SUBMIT** please read the following:

* [ ] **I'm submitting a bug report**
* [ ] **I'm submitting a feature request**
* [x] **I'm submitting a support request**

**webpack version:**
3.5.6

**sw-precache-webpack-plugin version**:
0.11.4

**Please tell us about your environment:**
OSX 10.12.5

**Browser:** [Chrome 61.0.3163.79]

**Current behavior:**
I'm currently using **Vuejs** with **Laravel**, and I want to use this `sw-precache-webpack-plugin` to cache my site, but there is a problem:
- I import some of my own `.js` file (which I write by myself) into `main.js` (this is main file of Vue including everything of site), when I build my project, there is no `main.js` in `cacheConfig` of `service-worker.js` file
- But if I remove all those things and rebuild, `main.js` will be in `service-worker.js`

Could anyone help me? many thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.