Want to know how to generate image sprites in ember-cli using compass? I thought this would be solved by using an ember addon and postprocess hook, i published an addon, To install run: npm install ember-cli-compass –save-dev inside your project.
Configure in your Brocfile.js.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp({ compass: { outputStyle: 'expanded', relativeAssets: false, sassDir: 'assets', imagesDir: 'images', cssDir: 'assets' } }); module.exports = app.toTree(); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.