Skip to content

Commit bac4e5f

Browse files
committed
Add note about building sourcemaps in production
1 parent d1e11c3 commit bac4e5f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@ We don't use it (yet), but [ember-cli-sentry](https://github.com/damiencaselli/e
5959
Apparently for it to work you will need to set `revisionKey` to your application's `config.APP.version` or set [raven-js][2]'s `release` option later via
6060
`Raven.setReleaseContext($("meta[name='revision']").attr('content'))`.
6161

62+
- Build sourcemaps in production environment
63+
64+
`ember-cli` builds sourcemaps only in development environment by default. In order to build them always,
65+
just add the following to your `EmberApp` options.
66+
```
67+
sourcemaps: {
68+
enabled: true,
69+
extensions: ['js']
70+
}
71+
```
72+
73+
See also: [ember-cli documentation](http://www.ember-cli.com/user-guide/#source-map)
74+
75+
6276
- Run the pipeline
6377

6478
```bash

0 commit comments

Comments
 (0)