Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 47e6a95

Browse files
committed
chore(readme): remove references to rollup
1 parent 2e40340 commit 47e6a95

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ Ionic projects use the `package.json` file for configuration. There's a handy [c
6565

6666
```
6767
"config": {
68-
"ionic_bundler": "rollup",
69-
"ionic_source_map_type": "source-map",
7068
"ionic_cleancss": "./config/cleancss.config.js"
7169
},
7270
```
@@ -77,15 +75,15 @@ Remember how we're actually running `ionic-app-scripts` from the `scripts` prope
7775

7876
```
7977
"scripts": {
80-
"build": "ionic-app-scripts build --rollup ./config/rollup.config.js",
78+
"build": "ionic-app-scripts build --webpack ./config/webpack.dev.config.js",
8179
"minify": "ionic-app-scripts minify --cleancss ./config/cleancss.config.js",
8280
},
8381
```
8482

8583
The same command-line flags can be also applied to `npm run` commands too, such as:
8684

8785
```
88-
npm run build --rollup ./config/rollup.config.js
86+
npm run build --webpack ./config/webpack.dev.config.js
8987
```
9088

9189

@@ -115,7 +113,6 @@ npm run build --rollup ./config/rollup.config.js
115113
| temp directory | `ionic_tmp_dir` | `--tmpDir` | `.tmp` | Temporary directory for writing files for debugging and various build tasks |
116114
| ionic-angular directory | `ionic_angular_dir` | `--ionicAngularDir` | `ionic-angular` | ionic-angular directory |
117115
| 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` |
119116
| source map type | `ionic_source_map_type` | `--sourceMapType` | `source-map` | Chooses the webpack `devtool` option. `eval` and `source-map` are supported |
120117
| generate source map | `ionic_generate_source_map` | `--generateSourceMap` | `true` | Determines whether to generate a source map or not |
121118
| 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
178175

179176
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.
180177

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.
182179

183180

184181
## All Available Tasks

0 commit comments

Comments
 (0)