-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions & Suggestions #27
Comments
I agree standardizing on how to handle this is likely to come up a few times in the future. If you have a particular view for how
They're both really solid SW caching plugins. My team at Google maintain sw-precache and I'm more familiar with how to handle more complex caching strategies using it. As we're building out more PWA add-ons on top of these types of libraries (see https://workboxjs.org/ for our next versions), I'm hopeful the Vue template will be able to take easier advantage of features like offline analytics off the shelf. |
The future will use libraries workboxjs as default. ? |
@aofdev Yep. Our goal is to move most integrations currently using sw-precache/sw-toolbox over to Workbox in Q4 of this year. This quarter we're focusing on getting Workbox stable and working on migration docs. |
Because of the title "Questions & Suggestions" I think it's better to ask here: @addyosmani how do we notified a user if there are new version deployed? Does it automatically notify the user? To add FCM service worker from firebase, I must add the script on build/service-worker-dev.js and build/service-worker-prod.js or just add the js file on the dist Also the notification "App ready for offline use" Thank you |
@addyosmani, any progress on this? |
@zokipirlo People are probably waiting for Workbox 3.0 Google release to use it in every build which were using sw-precache, as Workbox is the future of PWA Service Workers. As Google provides a easy way to migrate from the previous one to the new one : |
Thank you! |
I'm using vuejs with onsen ui for design and there I need to use workbox js I have installed workbox js as mentioned but I'm getting the error ` This dependency was not found: * fs in ./node_modules/fs-extra/lib/empty/index.js, ./node_modules/fs.realpath/index.js and 8 others To install it, you can run: npm install --save fs
I have installed fs as mentioned but the error still persists, does vue provides support for workbox? |
@wmtoscar First, did you do "npm install" without arguments to install all the dependecies of your project ? Then, it would be easier to us to understand if you can get more informations about the errors. There is no "Vue supports Workbox" or "Vue doesn't support Workbox", Workbox is an external library which you can use in any javascript (Web) project. Did you used this instructions to get Workbox ? : |
@wmtoscar Furthermore, Workbox just released their 3.0 (Not a Beta anymore) like yesterday or 2 days ago, so if you're not, try to get updated and try again. |
@kevinmarrec yeah I did npm install and I yeah read the guides to get started but wonder how should I create service worker like mentioned in the guidelines. I tried it without vue where it is working but in vue I'm facing this error continuously. |
@wmtoscar You're probably using a Webpack template with Vue (Onsen UI uses a CLI with Webpack, right ?), which seems to be laggy with some libraries webpack-contrib/css-loader#447, even if I never faced this problem. If you only setup a project without Webpack, like from scratch with Vue.js official library inline script, and do the same for Workbox, you should never facing this issue. |
@wmtoscar It's a Webpack issue. Did you add Workbox using their Workbox Webpack plugin ? |
yeah I have following dependencies in dependencies :{ dev-dependencies: { as per requirement I'm bound to use onsen ui. over native vue.js :( |
@wmtoscar You should check if one of the solutions provided in my previous link can fix your problem. |
no I have in total 10 errors found in dependency I have tried the above links didn't helped me much I don't have this line which they are asking to modify it in my config. node: { webpack.dev.conf looks like this.
whereas webpack.base.conf look like this
|
Hum, thinking about all you said, you should try to make 'fs' library works before making everything work. The error you provided was like it knows where to find the files but the files are missing. |
thanks for giving your valuable time on my issue you have any guidelines to fix this. |
hey thanks man I fixed this issue actually I have some import issue thanks for your time :) |
No problem, I'm glad to know I might help and that you fixed the issue ! Have fun now :P |
There is a preview of vuejs pwa migrating to workbox? also, what will happen to production apps? |
There are instructions on using (The Workbox integration is https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-pwa/index.js) |
after installing @vue-cli, im still getting version 2.9.3..... Also, will it be a improved version ? I can switch my production to this |
How can i use firebase push notifications with this pwa template? It's very confusing. The doc's think we are fluent in all tops like http request using curl. I got myself completely confused. |
Few questions/suggestions about the project...
Is there a reason why you are using the precache plugin vs the offline plugin? (https://github.com/goldhand/sw-precache-webpack-plugin vs https://github.com/NekR/offline-plugin)
-- seems like the precache plugin doesn't support appcache (ios) while the offline one does, but maybe there's something i dont know
we need a standard for moving files to the root instead a static folder. This is sometimes required by services like Firebase, etc... Maybe a 'root' folder alongside the 'static' one?
The text was updated successfully, but these errors were encountered: