You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
| ionic-angular entry point |`ionic_angular_entry_point`|`--ionicAngularEntryPoint`|`index.js`| entry point file for ionic-angular |
118
-
| bundler |`ionic_bundler`|`--bundler`|`webpack`| Chooses which bundler to use: `webpack` or `rollup`|
119
116
| source map type |`ionic_source_map_type`|`--sourceMapType`|`source-map`| Chooses the webpack `devtool` option. `eval` and `source-map` are supported |
120
117
| generate source map |`ionic_generate_source_map`|`--generateSourceMap`|`true`| Determines whether to generate a source map or not |
121
118
| tsconfig path |`ionic_ts_config`|`--tsconfig`|`{{rootDir}}/tsconfig.json`| absolute path to tsconfig.json |
@@ -178,7 +175,7 @@ These environment variables are automatically set to [Node's `process.env`](http
178
175
179
176
The `process.env.IONIC_ENV` environment variable can be used to test whether it is a `prod` or `dev` build, which automatically gets set by any command. By default the `build` and `serve` tasks produce `dev` builds (a build that does not include Ahead of Time (AoT) compilation or minification). To force a `prod` build you should use the `--prod` command line flag.
180
177
181
-
Please take a look at the bottom of the [default Rollup config file](https://github.com/ionic-team/ionic-app-scripts/blob/master/config/rollup.config.js) to see how the `IONIC_ENV` environment variable is being used to conditionally change config values for production builds.
178
+
`process.env.IONIC_ENV` environment variable is set to `prod` for `--prod` builds, otherwise `dev`for all other builds.
0 commit comments