diff options
author | crupest <crupest@outlook.com> | 2020-06-11 23:28:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-11 23:28:25 +0800 |
commit | cab7a278030af214f0503fa705d2015661a9ac4d (patch) | |
tree | ed109801378b768f12eb7e22b77d98f48609679a /Timeline/ClientApp/webpack.config.prod.js | |
parent | 64c4376ed388af106c1de5ec8bd1d1743950a27e (diff) | |
download | timeline-cab7a278030af214f0503fa705d2015661a9ac4d.tar.gz timeline-cab7a278030af214f0503fa705d2015661a9ac4d.tar.bz2 timeline-cab7a278030af214f0503fa705d2015661a9ac4d.zip |
build(front): Not use service worker in development mode.
Diffstat (limited to 'Timeline/ClientApp/webpack.config.prod.js')
-rw-r--r-- | Timeline/ClientApp/webpack.config.prod.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/ClientApp/webpack.config.prod.js b/Timeline/ClientApp/webpack.config.prod.js index 3b74faf6..e4594421 100644 --- a/Timeline/ClientApp/webpack.config.prod.js +++ b/Timeline/ClientApp/webpack.config.prod.js @@ -9,7 +9,7 @@ const WorkboxPlugin = require('workbox-webpack-plugin'); const { commonRules, htmlCommonConfig } = require('./webpack.common');
const config = {
- entry: ['./src/app/index.tsx'],
+ entry: ['./src/app/index.tsx', './src/app/service-worker.tsx'],
mode: 'production',
devtool: 'source-map',
module: {
|