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.
| bundler |`ionic_bundler`|`--bundler`|`webpack`| Chooses which bundler to use: `webpack` or `rollup`|
111
-
| source map type |`ionic_source_map`|`--sourceMap`|`eval`| Chooses the webpack `devtool` option. We only support `eval` or `source-map` for now |
112
111
| root directory |`ionic_root_dir`|`--rootDir`|`process.cwd()`| The directory path of the Ionic app |
113
-
| tmp directory |`ionic_tmp_dir`|`--tmpDir`|`.tmp`| A temporary directory for codegen'd files using the Angular `ngc` AoT compiler |
114
112
| src directory |`ionic_src_dir`|`--srcDir`|`src`| The directory holding the Ionic src code |
115
113
| www directory |`ionic_www_dir`|`--wwwDir`|`www`| The deployable directory containing everything needed to run the app |
116
114
| build directory |`ionic_build_dir`|`--buildDir`|`build`| The build process uses this directory to store generated files, etc |
115
+
| bundler |`ionic_bundler`|`--bundler`|`webpack`| Chooses which bundler to use: `webpack` or `rollup`|
116
+
| source map type |`ionic_source_map_type`|`--sourceMapType`|`source-map`| Chooses the webpack `devtool` option. `eval` and `source-map` are supported |
117
+
| generate source map |`ionic_generate_source_map`|`--generateSourceMap`|`true`| Determines whether to generate a source map or not |
118
+
| tsconfig path |`ionic_ts_config`|`--tsconfig`|`{{rootDir}}/tsconfig.json`| absolute path to tsconfig.json |
119
+
| app entry point |`ionic_app_entry_point`|`--appEntryPoint`|`{{srcDir}}/app/main.ts`| absolute path to app's entrypoint bootstrap file |
120
+
| clean before copy |`ionic_clean_before_copy`|`--cleanBeforeCopy`|`false`| clean out existing files before copy task runs |
121
+
| output js file |`ionic_output_js_file_name`|`--outputJsFileName`|`main.js`| name of js file generated in `buildDir`|
122
+
| output js map file |`ionic_output_js_map_file_name`|`--outputJsMapFileName`|`main.js.map`| name of js source map file generated in `buildDir`|
123
+
| output css file |`ionic_output_css_file_name`|`--outputCssFileName`|`main.css`| name of css file generated in `buildDir`|
124
+
| output css map file |`ionic_output_css_map_file_name`|`--outputCssMapFileName`|`main.css.map`| name of css source map file generated in `buildDir`|
125
+
126
+
127
+
128
+
117
129
118
130
119
131
### Ionic Environment Variables
@@ -124,14 +136,25 @@ These environment variables are automatically set to [Node's `process.env`](http
|`IONIC_ENV`| Value can be either `prod` or `dev`. |
126
138
|`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
139
|`IONIC_SRC_DIR`| The absolute path to the app's source directory. |
129
140
|`IONIC_WWW_DIR`| The absolute path to the app's public distribution directory. |
130
141
|`IONIC_BUILD_DIR`| The absolute path to the app's bundled js and css files. |
131
142
|`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. |
143
+
|`IONIC_SOURCE_MAP_TYPE`| The Webpack `devtool` setting. `eval` and `source-map` are supported.|
144
+
|`IONIC_GENERATE_SOURCE_MAP`| Determines whether to generate a sourcemap or not. |
145
+
|`IONIC_TS_CONFIG`| The absolute path to the project's `tsconfig.json` file |
146
+
|`IONIC_APP_ENTRY_POINT`| The absolute path to the project's `main.ts` entry point file |
147
+
|`IONIC_GLOB_UTIL`| The path to Ionic's `glob-util` script. Used within configs. |
134
148
|`IONIC_CLEAN_BEFORE_COPY`| Attempt to clean existing directories before copying files. |
149
+
|`IONIC_CLOSURE_JAR`| The absolute path ot the closure compiler jar file |
150
+
|`IONIC_OUTPUT_JS_FILE_NAME`| The file name of the generated javascript file |
151
+
|`IONIC_OUTPUT_JS_MAP_FILE_NAME`| The file name of the generated javascript source map file |
152
+
|`IONIC_OUTPUT_CSS_FILE_NAME`| The file name of the generated css file |
153
+
|`IONIC_OUTPUT_CSS_MAP_FILE_NAME`| The file name of the generated css source map file |
154
+
|`IONIC_WEBPACK_FACTORY`| The absolute path to Ionic's `webpack-factory` script |
155
+
|`IONIC_WEBPACK_LOADER`| The absolute path to Ionic's custom webpack loader |
156
+
157
+
135
158
136
159
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