forked from adopted-ember-addons/ember-paper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
30 lines (27 loc) · 797 Bytes
/
index.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
/* jshint node: true */
'use strict';
var path = require('path');
var autoprefixer = require('broccoli-autoprefixer');
module.exports = {
name: 'ember-paper',
blueprintsPath: function blueprintsPath() {
return path.join(__dirname, 'blueprints');
},
included: function(app) {
this._super.included(app);
app.import(app.bowerDirectory + '/hammerjs/hammer.js');
app.import(app.bowerDirectory + '/matchMedia/matchMedia.js');
app.import('vendor/propagating.js');
},
contentFor: function(type) {
if (type === 'head') {
return "<div id='paper-wormhole'></div>";
}
},
postprocessTree: function(type, tree) {
if (type === 'all' || type === 'styles') {
tree = autoprefixer(tree, { browsers: ['last 2 versions'] });
}
return tree;
}
};