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.
Copy file name to clipboardExpand all lines: README.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -120,16 +120,18 @@ npm run build --rollup ./config/rollup.config.js
120
120
121
121
These environment variables are automatically set to [Node's `process.env`](https://nodejs.org/api/process.html#process_process_env) property. These variables can be useful from within custom configuration files, such as custom `webpack.config.js` file.
|`IONIC_ENV`| Value can be either `prod` or `dev`. |
126
+
|`IONIC_ROOT_DIR`| The absolute path to the project's root directory. |
127
+
|`IONIC_TMP_DIR`| The absolute path to the project's temporary directory. |
128
+
|`IONIC_SRC_DIR`| The absolute path to the app's source directory. |
129
+
|`IONIC_WWW_DIR`| The absolute path to the app's public distribution directory. |
130
+
|`IONIC_BUILD_DIR`| The absolute path to the app's bundled js and css files. |
131
+
|`IONIC_APP_SCRIPTS_DIR`| The absolute path to the `@ionic/app-scripts` node_module directory. |
132
+
|`IONIC_SOURCE_MAP`| The Webpack `devtool` setting. We recommend `eval` or `source-map`. |
133
+
|`IONIC_PATH_TO_GLOB_UTILS`| The path to Ionic's `glob-util` script. Used within configs. |
134
+
|`IONIC_CLEAN_BEFORE_COPY`| Attempt to clean existing directories before copying files. |
133
135
134
136
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` task is `prod`, and the `watch` and `serve` tasks are `dev`. Additionally, using the `--dev` command line flag will force the build to use `dev`.
0 commit comments