8000 fix(pwa): resolve `Cannot read property 'target' of undefined` by VdustR · Pull Request #530 · egoist/poi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

fix(pwa): resolve Cannot read property 'target' of undefined #530

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/pwa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { GenerateSW } = require('workbox-webpack-plugin')
exports.name = 'pwa'

// Only use this plugin for web target
exports.when = api => api.config.output.target === 'web'
exports.when = api => !api.config.output || api.config.output.target === 'web'

exports.apply = (api, options = {}) => {
const pluginOptions = Object.assign(
Expand Down
0