Last active
August 29, 2015 14:06
-
-
Save VinSpee/edcffa542022f5a62fe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global require, module */ | |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
var rework = require('broccoli-rework'); | |
var app = new EmberApp({ | |
rework: function(css) { | |
var calc = require('rework-calc'); | |
var customMedia = require('rework-custom-media'); | |
var inliner = require('rework-npm'); | |
var vars = require('rework-vars'); | |
var dedupe = require('rework-deduplicate'); | |
var ease = require('rework-plugin-ease'); | |
var inherit = require('rework-inherit'); | |
var color = require('rework-color-function'); | |
var hexAlpha = require('rework-hex-alpha'); | |
//var fontVariant = require('rework-font-variant'); | |
var namespace = require('rework-namespace'); | |
var svg = require('rework-svg'); | |
var ns = ''; | |
css | |
.use(svg()) | |
.use(inliner()) | |
.use(customMedia) | |
.use(vars()) | |
.use(calc) | |
.use(hexAlpha) | |
.use(color) | |
.use(inherit()) | |
.use(ease()) | |
.use(dedupe()) | |
.use(namespace(ns)) | |
.toString({ sourcemap: true }); | |
}, | |
autoprefixer: {} | |
}); | |
console.log(app); | |
// Use `app.import` to add additional libraries to the generated | |
// output files. | |
// | |
// If you need to use different assets in different | |
// environments, specify an object as the first parameter. That | |
// object's keys should be the environment name and the values | |
// should be the asset to use in that environment. | |
// | |
// If the library that you are including contains AMD or ES6 | |
// modules that you would like to import into your application | |
// please specify an object with the list of modules as keys | |
// along with the exports of each module as its value. | |
module.exports = app.toTree(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment