This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathember-cli-build.js
60 lines (53 loc) · 1.56 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
58
59
60
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var env = EmberApp.env();
var s3Prefix;
if (env === "production") {
s3Prefix = "https://q-tasks-prod.s3.amazonaws.com/"
}
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
babel: {
includePolyfill: true
},
fingerprint: {
prepend: s3Prefix
},
styleProcessorOptions: {
processors: [
{
type: 'postcss',
plugins: [
{ module: require('postcss-import'),
options: {
path: "app/styles"
}
},
{ module: require('postcss-mixins') },
{ module: require('postcss-nested-vars') },
{ module: require('postcss-nested') },
{ module: require('postcss-extend') },
{ module: require('postcss-cssnext'),
options: {
browsers: ['last 2 versions']
}
},
{ module: require('postcss-fontpath') },
{ module: require('postcss-color-function') },
{ module: require('postcss-color-gray') }
]
}
],
extension: 'css'
},
});
app.import('bower_components/normalize-css/normalize.css', {
type: 'vendor',
prepend: true
});
if ((powerSelectCssIndex = app._styleOutputFiles['/assets/vendor.css'].indexOf('vendor/ember-power-select.css')) > -1) {
app._styleOutputFiles['/assets/vendor.css'].splice(powerSelectCssIndex, 1);
}
return app.toTree();
};