Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Remove unmaintained pwa middleware (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman authored Mar 23, 2019
1 parent d868591 commit 151225b
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 241 deletions.
6 changes: 3 additions & 3 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ Sometimes you can only make certain configuration changes in certain Node.js env
selectively make changes based on the values of any arbitrary environment variable. This can be achieved by
conditionally applying middleware in `.neutrinorc.js`.

For example, if you wanted to include additional middleware when `NODE_ENV` is `production`:
For example, if you wanted to include additional middleware when `NODE_ENV` is `test`:

```js
const pwa = require('@neutrinojs/pwa');
const jest = require('@neutrinojs/jest');

module.exports = {
use: [
process.env.NODE_ENV === 'production' ? pwa() : false,
process.env.NODE_ENV === 'test' ? jest() : false,
]
};
```
Expand Down
2 changes: 2 additions & 0 deletions docs/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ options for `minify.image` and `minify.style` [#809](https://github.com/neutrino
middleware packages can be used instead [#809](https://github.com/neutrinojs/neutrino/pull/809).
- **BREAKING CHANGE** The `@neutrinojs/image-minify` middleware has been removed
[#1105](https://github.com/neutrinojs/neutrino/pull/1105).
- **BREAKING CHANGE** The `@neutrinojs/pwa` middleware has been removed
[#1105](https://github.com/neutrinojs/neutrino/pull/1330).
- **BREAKING CHANGE** The `@neutrinojs/stylelint` middleware has been removed
[#1105](https://github.com/neutrinojs/neutrino/pull/1110).
- **BREAKING CHANGE** The `@neutrinojs/react` and `@neutrinojs/preact` packages no longer use
Expand Down
1 change: 0 additions & 1 deletion docs/packages/pwa.md

This file was deleted.

1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ nav:
- html-loader: './packages/html-loader.md'
- html-template: './packages/html-template.md'
- image-loader: './packages/image-loader.md'
- pwa: './packages/pwa.md'
- start-server: './packages/start-server.md'
- style-loader: './packages/style-loader.md'
- style-minify: './packages/style-minify.md'
Expand Down
1 change: 0 additions & 1 deletion packages/pwa/.npmignore

This file was deleted.

135 changes: 0 additions & 135 deletions packages/pwa/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/pwa/index.js

This file was deleted.

36 changes: 0 additions & 36 deletions packages/pwa/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/pwa/pwa.js

This file was deleted.

37 changes: 0 additions & 37 deletions packages/pwa/test/middleware_test.js

This file was deleted.

0 comments on commit 151225b

Please sign in to comment.