-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathember-cli-build.js
57 lines (51 loc) · 1.69 KB
/
ember-cli-build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-env node */
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const autoprefixer = require('autoprefixer');
const postcssNested = require('postcss-nested');
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
cssModules: {
plugins: {
before: [
postcssNested
],
after: [
autoprefixer('last 2 versions')
]
}
},
sourcemaps: {
enabled: true
},
inlineContent: {
sentry: {
enabled: Boolean(process.env.SENTRY_DSN),
content: `<script>
Raven.config('${process.env.SENTRY_DSN}').install();
Raven.setRelease('${process.env.HEROKU_RELEASE_VERSION}');
</script>`
}
}
});
app.import('vendor/normalize.css');
app.import('vendor/diff-match-patch.js');
app.import('vendor/shims/diff-match-patch.js');
app.import('vendor/sharedb.js');
app.import('vendor/shims/sharedb.js');
app.import(`${app.bowerDirectory}/js-cookie/src/js.cookie.js`);
app.import(`vendor/shims/js-cookie.js`);
app.import(
`${app.bowerDirectory}/reconnectingWebsocket/reconnecting-websocket.js`);
app.import('vendor/shims/reconnecting-websocket.js');
app.import(`${app.bowerDirectory}/raven-js/dist/raven.js`);
app.import(`${app.bowerDirectory}/raven-js/dist/plugins/ember.js`);
app.import('vendor/shims/raven.js');
app.import(`${app.bowerDirectory}/qs/dist/qs.js`);
app.import({
development: `${app.bowerDirectory}/dexie/dist/dexie.js`,
production: `${app.bowerDirectory}/dexie/dist/dexie.min.js`
});
app.import('vendor/shims/dexie.js');
app.import('vendor/shims/qs.js');
return app.toTree();
};