This repository was archived by the owner on Feb 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +118
-3
lines changed
Expand file tree Collapse file tree 4 files changed +118
-3
lines changed Original file line number Diff line number Diff line change 124124 "postcss-nested" : " 2.1.0" ,
125125 "postcss-simple-vars" : " 4.0.0" ,
126126 "progress" : " 1.1.8" ,
127+ "promise-worker" : " 1.1.1" ,
127128 "raw-loader" : " 0.5.1" ,
128129 "react-addons-perf" : " 15.4.2" ,
129130 "react-addons-test-utils" : " 15.6.2" ,
130131 "react-hot-loader" : " 3.1.3" ,
131132 "react-intl-aggregate-webpack-plugin" : " 0.0.1" ,
132133 "rimraf" : " 2.6.2" ,
134+ "serviceworker-webpack-plugin" : " 0.2.3" ,
133135 "sinon" : " 1.17.7" ,
134136 "sinon-as-promised" : " 4.0.2" ,
135137 "sinon-chai" : " 2.8.0" ,
146148 "webpack-error-notification" : " 0.1.6" ,
147149 "webpack-hot-middleware" : " 2.17.1" ,
148150 "websocket" : " 1.0.24" ,
151+ "worker-loader" : " 1.1.1" ,
149152 "yargs" : " 6.6.0"
150153 },
151154 "dependencies" : {
152155 "@parity/api" : " 2.1.20" ,
153156 "@parity/mobx" : " 1.1.2" ,
154- "@parity/plugin-signer-account" : " github:parity-js/plugin-signer-account#3acd84ba1965f9ee419edd04d84e13e097e6d661 " ,
157+ "@parity/plugin-signer-account" : " github:parity-js/plugin-signer-account#bd4df5810ca57fd6f512ab33a6bfacc95d1b6b23 " ,
155158 "@parity/plugin-signer-default" : " github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6" ,
156159 "@parity/plugin-signer-hardware" : " github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee" ,
157160 "@parity/plugin-signer-qr" : " github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0" ,
Original file line number Diff line number Diff line change 1+ // Copyright 2015-2017 Parity Technologies (UK) Ltd.
2+ // This file is part of Parity.
3+
4+ // Parity is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // Parity is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with Parity. If not, see <http://www.gnu.org/licenses/>.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
2424const WebpackErrorNotificationPlugin = require ( 'webpack-error-notification' ) ;
2525const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
2626const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
27+ const ServiceWorkerWebpackPlugin = require ( 'serviceworker-webpack-plugin' ) ;
2728
2829const rulesEs6 = require ( './rules/es6' ) ;
2930const rulesParity = require ( './rules/parity' ) ;
@@ -238,7 +239,12 @@ module.exports = {
238239 )
239240 ] ) ,
240241 { }
241- )
242+ ) ,
243+
244+ new ServiceWorkerWebpackPlugin ( {
245+ entry : path . join ( __dirname , '../src/serviceWorker.js' ) ,
246+ publicPath : path . join ( __dirname , '../.build/' )
247+ } ) ,
242248 ) ;
243249 }
244250
You can’t perform that action at this time.
0 commit comments