diff options
| author | HJ <spam@hjkos.com> | 2018-12-13 13:46:57 +0000 |
|---|---|---|
| committer | HJ <spam@hjkos.com> | 2018-12-13 13:46:57 +0000 |
| commit | 8e4777ccc6bf72b56a0905ca491c8e0e97fb73cf (patch) | |
| tree | 53e98662ef34b8bccc845f627c125528c1c1436c /build/webpack.base.conf.js | |
| parent | e443716bcd616ad61efae161624dd970841a935c (diff) | |
| parent | a8521fc8d99ee7ee5142e2c7c642eee0fc14ed93 (diff) | |
Merge branch 'feature/push-subscriptions' into 'develop'
add service worker and push notifications
See merge request pleroma/pleroma-fe!404
Diffstat (limited to 'build/webpack.base.conf.js')
| -rw-r--r-- | build/webpack.base.conf.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 198532ca..ea46ce6f 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -2,6 +2,7 @@ var path = require('path') var config = require('../config') var utils = require('./utils') var projectRoot = path.resolve(__dirname, '../') +var ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin') var env = process.env.NODE_ENV // check env & config/index.js to decide weither to enable CSS Sourcemaps for the @@ -91,5 +92,10 @@ module.exports = { browsers: ['last 2 versions'] }) ] - } + }, + plugins: [ + new ServiceWorkerWebpackPlugin({ + entry: path.join(__dirname, '..', 'src/sw.js') + }) + ] } |
