Skip to content

Commit

Permalink
Configure service worker for production
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbainter committed Jul 30, 2018
1 parent 6c9d75c commit 3b2c325
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ const config = {
new OfflinePlugin({
appShell: '/',
externals: Object.keys(pianoSamples).map(key => pianoSamples[key]),
publicPath:
// eslint-disable-next-line no-process-env
process.env.NODE_ENV === 'production'
? 'https://generativemusic.alexbainter.com'
: '',
}),
],
};
Expand Down

0 comments on commit 3b2c325

Please sign in to comment.