vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

About "PWA-plugin" : set manifest base path for `<link rel="manifest" />` #5953

Open Dante-dan opened 4 years ago

Dante-dan commented 4 years ago

What problem does this feature solve?

In production , we usually set static resource on CDN. So, we set a property publicPath.

But, start_url in 'manifest.json` has been required to be of the same origin.

So, when we use relative path in 'manifestPath' and use publicPath in webpack.

PWA cann't working

What does the proposed API look like?

pwa.manifestUseRelative = true; // default false
lifuzhao100 commented 4 years ago

full of expectation