@ionic/angular 7.6.2-dev.11702957417.1622fcc0 → 7.6.2-dev.11703182244.1165aeec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/directives/proxies.d.ts +1 -1
- package/esm2020/common/directives/control-value-accessors/value-accessor.mjs +4 -4
- package/esm2020/common/directives/navigation/back-button.mjs +4 -4
- package/esm2020/common/directives/navigation/nav.mjs +4 -4
- package/esm2020/common/directives/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/common/directives/navigation/router-outlet.mjs +7 -7
- package/esm2020/common/directives/navigation/tabs.mjs +4 -4
- package/esm2020/common/overlays/modal.mjs +4 -4
- package/esm2020/common/overlays/popover.mjs +4 -4
- package/esm2020/common/providers/angular-delegate.mjs +4 -4
- package/esm2020/common/providers/config.mjs +4 -4
- package/esm2020/common/providers/dom-controller.mjs +4 -4
- package/esm2020/common/providers/nav-controller.mjs +4 -4
- package/esm2020/common/providers/platform.mjs +4 -4
- package/esm2020/directives/control-value-accessors/boolean-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/numeric-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/radio-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/select-value-accessor.mjs +4 -4
- package/esm2020/directives/control-value-accessors/text-value-accessor.mjs +4 -4
- package/esm2020/directives/navigation/ion-back-button.mjs +4 -4
- package/esm2020/directives/navigation/ion-nav.mjs +4 -4
- package/esm2020/directives/navigation/ion-router-outlet.mjs +4 -4
- package/esm2020/directives/navigation/ion-tabs.mjs +4 -4
- package/esm2020/directives/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/directives/overlays/modal.mjs +4 -4
- package/esm2020/directives/overlays/popover.mjs +4 -4
- package/esm2020/directives/proxies.mjs +234 -234
- package/esm2020/directives/validators/max-validator.mjs +4 -4
- package/esm2020/directives/validators/min-validator.mjs +4 -4
- package/esm2020/ionic-module.mjs +5 -5
- package/esm2020/providers/action-sheet-controller.mjs +4 -4
- package/esm2020/providers/alert-controller.mjs +4 -4
- package/esm2020/providers/animation-controller.mjs +4 -4
- package/esm2020/providers/gesture-controller.mjs +4 -4
- package/esm2020/providers/loading-controller.mjs +4 -4
- package/esm2020/providers/menu-controller.mjs +4 -4
- package/esm2020/providers/modal-controller.mjs +4 -4
- package/esm2020/providers/picker-controller.mjs +4 -4
- package/esm2020/providers/toast-controller.mjs +4 -4
- package/esm2020/standalone/directives/checkbox.mjs +4 -4
- package/esm2020/standalone/directives/datetime.mjs +4 -4
- package/esm2020/standalone/directives/icon.mjs +4 -4
- package/esm2020/standalone/directives/input.mjs +4 -4
- package/esm2020/standalone/directives/proxies.mjs +198 -198
- package/esm2020/standalone/directives/radio-group.mjs +4 -4
- package/esm2020/standalone/directives/radio.mjs +4 -4
- package/esm2020/standalone/directives/range.mjs +4 -4
- package/esm2020/standalone/directives/searchbar.mjs +4 -4
- package/esm2020/standalone/directives/segment.mjs +4 -4
- package/esm2020/standalone/directives/select.mjs +4 -4
- package/esm2020/standalone/directives/textarea.mjs +4 -4
- package/esm2020/standalone/directives/toggle.mjs +4 -4
- package/esm2020/standalone/navigation/back-button.mjs +4 -4
- package/esm2020/standalone/navigation/nav.mjs +4 -4
- package/esm2020/standalone/navigation/router-link-delegate.mjs +7 -7
- package/esm2020/standalone/navigation/router-outlet.mjs +4 -4
- package/esm2020/standalone/navigation/tabs.mjs +4 -4
- package/esm2020/standalone/overlays/modal.mjs +4 -4
- package/esm2020/standalone/overlays/popover.mjs +4 -4
- package/esm2020/standalone/providers/action-sheet-controller.mjs +4 -4
- package/esm2020/standalone/providers/alert-controller.mjs +4 -4
- package/esm2020/standalone/providers/animation-controller.mjs +4 -4
- package/esm2020/standalone/providers/gesture-controller.mjs +4 -4
- package/esm2020/standalone/providers/loading-controller.mjs +4 -4
- package/esm2020/standalone/providers/menu-controller.mjs +4 -4
- package/esm2020/standalone/providers/modal-controller.mjs +4 -4
- package/esm2020/standalone/providers/picker-controller.mjs +4 -4
- package/esm2020/standalone/providers/toast-controller.mjs +4 -4
- package/fesm2015/ionic-angular-common.mjs +45 -45
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular-standalone.mjs +284 -284
- package/fesm2015/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs +309 -309
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +45 -45
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular-standalone.mjs +284 -284
- package/fesm2020/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +309 -309
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/standalone/directives/proxies.d.ts +1 -1
- package/LICENSE +0 -21
- package/test/apps/ng14/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng14/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng14/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng14/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng14/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng14/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng14/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng14/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng14/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng14/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -10
- package/test/apps/ng14/node_modules/@typescript-eslint/parser/README.md +0 -10
- package/test/apps/ng14/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng14/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng14/node_modules/cypress/README.md +0 -25
- package/test/apps/ng14/node_modules/eslint/README.md +0 -308
- package/test/apps/ng14/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng14/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng14/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng14/node_modules/tslib/README.md +0 -164
- package/test/apps/ng14/node_modules/typescript/README.md +0 -104
- package/test/apps/ng14/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng14/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng14/node_modules/webpack/README.md +0 -721
- package/test/apps/ng14/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng14/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng15/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng15/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng15/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng15/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng15/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng15/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng15/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng15/node_modules/@nguniversal/express-engine/README.md +0 -118
- package/test/apps/ng15/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng15/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng15/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -234
- package/test/apps/ng15/node_modules/@typescript-eslint/parser/README.md +0 -265
- package/test/apps/ng15/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng15/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng15/node_modules/cypress/README.md +0 -25
- package/test/apps/ng15/node_modules/eslint/README.md +0 -308
- package/test/apps/ng15/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng15/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng15/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng15/node_modules/tslib/README.md +0 -164
- package/test/apps/ng15/node_modules/typescript/README.md +0 -104
- package/test/apps/ng15/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng15/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng15/node_modules/webpack/README.md +0 -721
- package/test/apps/ng15/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng15/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng16/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng16/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng16/node_modules/@angular-devkit/build-angular/README.md +0 -20
- package/test/apps/ng16/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin/README.md +0 -84
- package/test/apps/ng16/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -93
- package/test/apps/ng16/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng16/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng16/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng16/node_modules/@nguniversal/builders/README.md +0 -76
- package/test/apps/ng16/node_modules/@nguniversal/express-engine/README.md +0 -118
- package/test/apps/ng16/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng16/node_modules/@types/node/README.md +0 -16
- package/test/apps/ng16/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -234
- package/test/apps/ng16/node_modules/@typescript-eslint/parser/README.md +0 -265
- package/test/apps/ng16/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng16/node_modules/core-js/README.md +0 -2307
- package/test/apps/ng16/node_modules/cypress/README.md +0 -25
- package/test/apps/ng16/node_modules/eslint/README.md +0 -308
- package/test/apps/ng16/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng16/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng16/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng16/node_modules/tslib/README.md +0 -164
- package/test/apps/ng16/node_modules/typescript/README.md +0 -49
- package/test/apps/ng16/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng16/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng16/node_modules/webpack/README.md +0 -721
- package/test/apps/ng16/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng16/node_modules/zone.js/README.md +0 -141
- package/test/apps/ng17/node_modules/@angular/animations/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/cli/README.md +0 -5
- package/test/apps/ng17/node_modules/@angular/common/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/compiler/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/core/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/forms/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-browser/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-browser-dynamic/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/platform-server/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular/router/README.md +0 -8
- package/test/apps/ng17/node_modules/@angular-devkit/build-angular/README.md +0 -24
- package/test/apps/ng17/node_modules/@angular-eslint/builder/README.md +0 -1
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin/README.md +0 -84
- package/test/apps/ng17/node_modules/@angular-eslint/eslint-plugin-template/README.md +0 -94
- package/test/apps/ng17/node_modules/@angular-eslint/schematics/README.md +0 -1
- package/test/apps/ng17/node_modules/@angular-eslint/template-parser/README.md +0 -1
- package/test/apps/ng17/node_modules/@ionic/angular/README.md +0 -74
- package/test/apps/ng17/node_modules/@types/express/README.md +0 -15
- package/test/apps/ng17/node_modules/@types/ws/README.md +0 -16
- package/test/apps/ng17/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -12
- package/test/apps/ng17/node_modules/@typescript-eslint/parser/README.md +0 -12
- package/test/apps/ng17/node_modules/concurrently/README.md +0 -315
- package/test/apps/ng17/node_modules/core-js/README.md +0 -95
- package/test/apps/ng17/node_modules/cypress/README.md +0 -25
- package/test/apps/ng17/node_modules/eslint/README.md +0 -308
- package/test/apps/ng17/node_modules/rxjs/README.md +0 -107
- package/test/apps/ng17/node_modules/ts-loader/README.md +0 -731
- package/test/apps/ng17/node_modules/ts-node/README.md +0 -302
- package/test/apps/ng17/node_modules/tslib/README.md +0 -164
- package/test/apps/ng17/node_modules/typescript/README.md +0 -51
- package/test/apps/ng17/node_modules/typescript-eslint-language-service/README.md +0 -77
- package/test/apps/ng17/node_modules/wait-on/README.md +0 -297
- package/test/apps/ng17/node_modules/webpack/README.md +0 -721
- package/test/apps/ng17/node_modules/webpack-cli/README.md +0 -147
- package/test/apps/ng17/node_modules/zone.js/README.md +0 -141
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<a href="https://github.com/webpack/webpack-cli">
|
|
3
|
-
<img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
|
|
4
|
-
</a>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
# webpack CLI
|
|
8
|
-
|
|
9
|
-
The official CLI of webpack
|
|
10
|
-
|
|
11
|
-
## About
|
|
12
|
-
|
|
13
|
-
webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration.
|
|
14
|
-
|
|
15
|
-
## How to install
|
|
16
|
-
|
|
17
|
-
When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed!
|
|
18
|
-
|
|
19
|
-
Otherwise
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install --save-dev webpack-cli
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
or
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
yarn add webpack-cli --dev
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Supported arguments and commands
|
|
32
|
-
|
|
33
|
-
### Usage
|
|
34
|
-
|
|
35
|
-
All interactions with webpack-cli are of the form
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npx webpack-cli [command] [options]
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
If no command is specified then `bundle` command is used by default
|
|
42
|
-
|
|
43
|
-
### Help Usage
|
|
44
|
-
|
|
45
|
-
To display basic commands and arguments -
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npx webpack-cli --help
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
To display all supported commands and arguments -
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
npx webpack-cli --help=verbose
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
or
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
npx webpack-cli --help verbose
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Available Commands
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
build|bundle|b [entries...] [options] Run webpack (default command, can be omitted).
|
|
67
|
-
configtest|t [config-path] Validate a webpack configuration.
|
|
68
|
-
help|h [command] [option] Display help for commands and options.
|
|
69
|
-
info|i [options] Outputs information about your system.
|
|
70
|
-
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
|
|
71
|
-
loader|l [output-path] [options] Scaffold a loader.
|
|
72
|
-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
|
|
73
|
-
plugin|p [output-path] [options] Scaffold a plugin.
|
|
74
|
-
serve|server|s [entries...] [options] Run the webpack dev server.
|
|
75
|
-
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
|
|
76
|
-
watch|w [entries...] [options] Run webpack and watch for files changes.
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### webpack 4
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
Options:
|
|
83
|
-
--analyze It invokes webpack-bundle-analyzer plugin to get bundle information
|
|
84
|
-
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
|
|
85
|
-
--config-name <value...> Name of the configuration to use.
|
|
86
|
-
-m, --merge Merge two or more configurations using 'webpack-merge'.
|
|
87
|
-
--env <value...> Environment passed to the configuration when it is a function.
|
|
88
|
-
--node-env <value> Sets process.env.NODE_ENV to the specified value.
|
|
89
|
-
--progress [value] Print compilation progress during build.
|
|
90
|
-
-j, --json [value] Prints result as JSON or store it in a file.
|
|
91
|
-
-d, --devtool <value> Determine source maps to use.
|
|
92
|
-
--no-devtool Do not generate source maps.
|
|
93
|
-
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
|
|
94
|
-
-h, --hot [value] Enables Hot Module Replacement
|
|
95
|
-
--no-hot Disables Hot Module Replacement
|
|
96
|
-
--mode <value> Defines the mode to pass to webpack.
|
|
97
|
-
--name <value> Name of the configuration. Used when loading multiple configurations.
|
|
98
|
-
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
|
|
99
|
-
--prefetch <value> Prefetch this request
|
|
100
|
-
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
|
|
101
|
-
--no-stats Disable stats output.
|
|
102
|
-
-t, --target <value...> Sets the build target e.g. node.
|
|
103
|
-
-w, --watch Watch for files changes.
|
|
104
|
-
--no-watch Do not watch for file changes.
|
|
105
|
-
--watch-options-stdin Stop watching when stdin stream has ended.
|
|
106
|
-
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
|
|
107
|
-
|
|
108
|
-
Global options:
|
|
109
|
-
--color Enable colors on console.
|
|
110
|
-
--no-color Disable colors on console.
|
|
111
|
-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
|
|
112
|
-
-h, --help [verbose] Display help for commands and options.
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### webpack 5
|
|
116
|
-
|
|
117
|
-
Checkout [`OPTIONS.md`](https://github.com/webpack/webpack-cli/blob/master/OPTIONS.md) to see list of all available options.
|
|
118
|
-
|
|
119
|
-
## Exit codes and their meanings
|
|
120
|
-
|
|
121
|
-
| Exit Code | Description |
|
|
122
|
-
| --------- | -------------------------------------------------- |
|
|
123
|
-
| `0` | Success |
|
|
124
|
-
| `1` | Errors from webpack |
|
|
125
|
-
| `2` | Configuration/options problem or an internal error |
|
|
126
|
-
|
|
127
|
-
## CLI Environment Variables
|
|
128
|
-
|
|
129
|
-
| Environment Variable | Description |
|
|
130
|
-
| ----------------------------------- | ------------------------------------------------------------------- |
|
|
131
|
-
| `WEBPACK_CLI_SKIP_IMPORT_LOCAL` | when `true` it will skip using the local instance of `webpack-cli`. |
|
|
132
|
-
| `WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG` | when `true` it will force load the ESM config. |
|
|
133
|
-
| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI. |
|
|
134
|
-
| `WEBPACK_DEV_SERVER_PACKAGE` | Use a custom webpack-dev-server version in CLI. |
|
|
135
|
-
| `WEBPACK_CLI_HELP_WIDTH` | Use custom width for help output. |
|
|
136
|
-
|
|
137
|
-
## Configuration Environment Variables
|
|
138
|
-
|
|
139
|
-
You can use the following environment variables inside your webpack configuration:
|
|
140
|
-
|
|
141
|
-
| Environment Variable | Description |
|
|
142
|
-
| -------------------- | -------------------------------------------- |
|
|
143
|
-
| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. |
|
|
144
|
-
| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. |
|
|
145
|
-
| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. |
|
|
146
|
-
|
|
147
|
-
Checkout [webpack.js.org](https://webpack.js.org/api/cli/) for more detailed documentation of `webpack-cli`.
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# Zone.js
|
|
2
|
-
|
|
3
|
-
[](https://cdnjs.com/libraries/zone.js)
|
|
4
|
-
|
|
5
|
-
Implements _Zones_ for JavaScript, inspired by [Dart](https://dart.dev/articles/archive/zones).
|
|
6
|
-
|
|
7
|
-
> If you're using zone.js via unpkg (i.e. using `https://unpkg.com/zone.js`)
|
|
8
|
-
> and you're using any of the following libraries, make sure you import them first
|
|
9
|
-
|
|
10
|
-
> * 'newrelic' as it patches global.Promise before zone.js does
|
|
11
|
-
> * 'async-listener' as it patches global.setTimeout, global.setInterval before zone.js does
|
|
12
|
-
> * 'continuation-local-storage' as it uses async-listener
|
|
13
|
-
|
|
14
|
-
# NEW Zone.js POST-v0.6.0
|
|
15
|
-
|
|
16
|
-
See the new API [here](./lib/zone.ts).
|
|
17
|
-
|
|
18
|
-
Read up on [Zone Primer](https://docs.google.com/document/d/1F5Ug0jcrm031vhSMJEOgp1l-Is-Vf0UCNDY-LsQtAIY).
|
|
19
|
-
|
|
20
|
-
# BREAKING CHANGES since Zone.js v0.11.1
|
|
21
|
-
|
|
22
|
-
Prior to `v0.11.1`, Zone.js provided two distribution bundle formats in the `dist` folder.
|
|
23
|
-
They were (1) `ES5` bundle distributed as `zone.js` and (2) `ES2015` bundle distributed as `zone-evergreen.js`.
|
|
24
|
-
Both of these bundles were in `UMD` format, and are used for Angular's differential-loading mechanism.
|
|
25
|
-
|
|
26
|
-
Starting with `v0.11.1`, Zone.js follows the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs). Therefor the new Zone.js file layout is:
|
|
27
|
-
|
|
28
|
-
- `bundles`: `ES5` bundle in `UMD` format.
|
|
29
|
-
- `fesm2015`: `ES5` bundle in `ESM` format.
|
|
30
|
-
- `dist`: `ES5` bundle in `UMD` format. This directory is present to keep backward compatibility.
|
|
31
|
-
|
|
32
|
-
If you are using `Angular CLI`, the `polyfills.ts` file will contain:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
import 'zone.js/dist/zone';
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Starting with Zone.js `v0.11.1+` the import changes to:
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
import 'zone.js';
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Prior to `v0.11.1` the import would load the `ES5` bundle in `UMD` format from `dist/zone.js`.
|
|
45
|
-
Starting with `v0.11.1` the import loads the `ES2015` bundle in `ESM` format instead.
|
|
46
|
-
|
|
47
|
-
This is a breaking change for legacy browsers such as `IE11`.
|
|
48
|
-
|
|
49
|
-
For backwards compatibility `zone.js` continues to distribute the same bundles under `dist`.
|
|
50
|
-
To restore the old behavior import from the `dist` directory instead like so:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
import 'zone.js/dist/zone';
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
For details, please refer the [changelog](./CHANGELOG.md) and the [PR](https://github.com/angular/angular/pull/36540).
|
|
57
|
-
|
|
58
|
-
## What's a Zone?
|
|
59
|
-
|
|
60
|
-
A Zone is an execution context that persists across async tasks.
|
|
61
|
-
You can think of it as [thread-local storage](https://en.wikipedia.org/wiki/Thread-local_storage) for JavaScript VMs.
|
|
62
|
-
|
|
63
|
-
See this video from ng-conf 2014 for a detailed explanation:
|
|
64
|
-
|
|
65
|
-
[](//www.youtube.com/watch?v=3IqtmUscE_U&t=150)
|
|
66
|
-
|
|
67
|
-
## See also
|
|
68
|
-
* [async-listener](https://github.com/othiym23/async-listener) - a similar library for node
|
|
69
|
-
* [Async stack traces in Chrome](https://www.html5rocks.com/en/tutorials/developertools/async-call-stack/)
|
|
70
|
-
* [strongloop/zone](https://github.com/strongloop/zone) (Deprecated)
|
|
71
|
-
* [vizone](https://github.com/gilbox/vizone) - control flow visualizer that uses zone.js
|
|
72
|
-
|
|
73
|
-
## Standard API support
|
|
74
|
-
|
|
75
|
-
zone.js patched most standard web APIs (such as DOM events, `XMLHttpRequest`, ...) and nodejs APIs
|
|
76
|
-
(`EventEmitter`, `fs`, ...), for more details, please see [STANDARD-APIS.md](STANDARD-APIS.md).
|
|
77
|
-
|
|
78
|
-
## Nonstandard API support
|
|
79
|
-
|
|
80
|
-
We are adding support to some nonstandard APIs, such as MediaQuery and
|
|
81
|
-
Notification. Please see [NON-STANDARD-APIS.md](NON-STANDARD-APIS.md) for more details.
|
|
82
|
-
|
|
83
|
-
## Examples
|
|
84
|
-
|
|
85
|
-
You can find some samples to describe how to use zone.js in [SAMPLE.md](SAMPLE.md).
|
|
86
|
-
|
|
87
|
-
## Modules
|
|
88
|
-
|
|
89
|
-
zone.js patches the async APIs described above, but those patches will have some overhead.
|
|
90
|
-
Starting from zone.js v0.8.9, you can choose which web API module you want to patch.
|
|
91
|
-
For more details, please
|
|
92
|
-
see [MODULE.md](MODULE.md).
|
|
93
|
-
|
|
94
|
-
## Bundles
|
|
95
|
-
|
|
96
|
-
Starting with `v0.11.0`, `zone.js` uses `Angular Package Format` for bundle distribution.
|
|
97
|
-
(For backwards compatibility, all bundles can still be accessed from `dist` folder.)
|
|
98
|
-
|
|
99
|
-
|Bundle|Summary|
|
|
100
|
-
|---|---|
|
|
101
|
-
|`zone.js`| The default bundle. Contains the most used APIs such as `setTimeout/Promise/EventTarget...`, it also supports differential loading by importing this bundle using `import zone.js`. In legacy browsers it includes some additional patches such as `registerElement` and `EventTarget` like APIs.|
|
|
102
|
-
|`zone-testing.js`| The bundle for zone testing support of `jasmine` / `mocha` / `jest`. Also includes test utility functions `async` / `fakeAsync` / `sync`.|
|
|
103
|
-
|`zone-node.js`|The NodeJS support bundle.|
|
|
104
|
-
|`zone-mix.js`|A mixed bundle which supports both browser and NodeJS. Useful for mixed environment such as Electron.|
|
|
105
|
-
|`zone-externs.js`|the API definitions for `closure compiler`.|
|
|
106
|
-
|
|
107
|
-
Additional optional patches not included in the `zone.js` bundles which extend functionality.
|
|
108
|
-
The additional bundles can be found under `zone.js/plugins` folder.
|
|
109
|
-
To use these bundles, add the following code after importing zone.js bundle.
|
|
110
|
-
|
|
111
|
-
```
|
|
112
|
-
import 'zone.js';
|
|
113
|
-
// For example, import canvas patch
|
|
114
|
-
import 'zone.js/plugins/zone-patch-canvas';
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
|Patch|Summary|
|
|
118
|
-
|---|---|
|
|
119
|
-
|`webapis-media-query.js`|patch for `MediaQuery APIs`|
|
|
120
|
-
|`webapis-notification.js`|patch for `Notification APIs`|
|
|
121
|
-
|`webapis-rtc-peer-connection.js`|patch for `RTCPeerConnection APIs`|
|
|
122
|
-
|`webapis-shadydom.js`|patch for `Shady DOM APIs`|
|
|
123
|
-
|`zone-bluebird.js`|patch for `Bluebird APIs`|
|
|
124
|
-
|`zone-error.js`|patch for `Error Global Object`, supports adding zone information to stack frame, and also removing unrelated stack frames from `zone.js` internally|
|
|
125
|
-
|`zone-patch-canvas.js`|patch for `Canvas API`|
|
|
126
|
-
|`zone-patch-cordova.js`|patch for `Cordova API`|
|
|
127
|
-
|`zone-patch-electron.js`|patch for `Electron API`|
|
|
128
|
-
|`zone-patch-fetch.js`|patch for `Fetch API`|
|
|
129
|
-
|`zone-patch-jsonp.js`|helper utility for `jsonp API`|
|
|
130
|
-
|`zone-patch-resize-observer.js`|patch for `ResizeObserver API`|
|
|
131
|
-
|`zone-patch-rxjs.js`|patch for `rxjs API`|
|
|
132
|
-
|`zone-patch-rxjs-fake-async.js`|patch for `rxjs fakeasync test`|
|
|
133
|
-
|`zone-patch-socket-io.js`|patch for `socket-io`|
|
|
134
|
-
|`zone-patch-user-media.js`|patch for `UserMedia API`|
|
|
135
|
-
|`zone-patch-message-port.js`|patch for `MessagePort API`|
|
|
136
|
-
|
|
137
|
-
## Promise A+ test passed
|
|
138
|
-
[](https://promisesaplus.com/)
|
|
139
|
-
|
|
140
|
-
## License
|
|
141
|
-
MIT
|