Skip to content

Commit

Permalink
Fixes service worker file path to be relative to __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed May 1, 2020
1 parent 0d8eff5 commit d10813c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ const path = require('path')
const packageJson = require('../package.json')

const SERVICE_WORKER_SOURCE_PATH = path.resolve(
process.cwd(),
__dirname,
'../',
'src/mockServiceWorker.js',
)

const SERVICE_WORKER_BUILD_PATH = path.resolve(
process.cwd(),
__dirname,
'../',
path.dirname(packageJson.main),
path.basename(SERVICE_WORKER_SOURCE_PATH),
)
Expand Down

0 comments on commit d10813c

Please sign in to comment.