Skip to content

Commit 44d1c09

Browse files
EugeneHlushkomontogeek
authored andcommitted
docs(guides): Format pwa guide (#2702)
- remove extra `up` - align code
1 parent 38034ef commit 44d1c09

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/content/guides/progressive-web-application.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Available on:
4747
Hit CTRL-C to stop the server
4848
```
4949

50-
If you open your browser to `http://localhost:8080` (i.e. `http://127.0.0.1`) you should see your webpack application being served up from the `dist` directory. If you stop the server and refresh, the webpack application is no longer available.
50+
If you open your browser to `http://localhost:8080` (i.e. `http://127.0.0.1`) you should see your webpack application being served from the `dist` directory. If you stop the server and refresh, the webpack application is no longer available.
5151

5252
This is what we aim to change. Once we reach the end of this module we should be able to stop the server, hit refresh and still see our application.
5353

@@ -73,20 +73,20 @@ __webpack.config.js__
7373
app: './src/index.js',
7474
print: './src/print.js'
7575
},
76-
plugins: [
77-
new CleanWebpackPlugin(['dist']),
78-
new HtmlWebpackPlugin({
79-
- title: 'Output Management'
80-
+ title: 'Progressive Web Application'
81-
- })
82-
+ }),
83-
+ new WorkboxPlugin.GenerateSW({
84-
+ // these options encourage the ServiceWorkers to get in there fast
85-
+ // and not allow any straggling "old" SWs to hang around
86-
+ clientsClaim: true,
87-
+ skipWaiting: true
88-
+ })
89-
],
76+
plugins: [
77+
new CleanWebpackPlugin(['dist']),
78+
new HtmlWebpackPlugin({
79+
- title: 'Output Management'
80+
+ title: 'Progressive Web Application'
81+
- })
82+
+ }),
83+
+ new WorkboxPlugin.GenerateSW({
84+
+ // these options encourage the ServiceWorkers to get in there fast
85+
+ // and not allow any straggling "old" SWs to hang around
86+
+ clientsClaim: true,
87+
+ skipWaiting: true
88+
+ })
89+
],
9090
output: {
9191
filename: '[name].bundle.js',
9292
path: path.resolve(__dirname, 'dist')

0 commit comments

Comments
 (0)