pixelhandler / ember-off-canvas-components

A micro library containing a group of Ember.js Components that interact to create an Off-Canvas user interface.
http://pixelhandler.github.io/ember-off-canvas-components/
MIT License
41 stars 4 forks source link

Installing eoc into an addon that also uses sass #3

Closed miguelcobain closed 9 years ago

miguelcobain commented 9 years ago

I was planing to use eoc to power a drawer component in an addon called ember-paper. This addon also uses sass, just like you did on this project.

When I try to compile, the following error occurs:

Merge error: file scss/main.scss exists in /home/jcandrade/Documents/workspace/ember-paper/tmp/tree_merger-tmp_dest_dir-5dgGxYPy.tmp and /home/workspace/ember-paper/tmp/tree_merger-tmp_dest_dir-gpGD7cp7.tmp
Pass option { overwrite: true } to mergeTrees in order to have the latter file win.

For a quick fix I tried renaming my main.scss to ember-paper.scss, but then I got the same error regarding the file mixins.scss. Renaming everything isn't the way to go.

Can you think of a quick solution for this problem?

pixelhandler commented 9 years ago

@miguelcobain I have not tried to use this project as a child addon of another addon so that does sound like there will be a challenge with compiling the .scss files. When I get time I'll give it a try, please let me know if you do find a workaround.

pixelhandler commented 9 years ago

@miguelcobain I'm using node-sass only not broccoli-sass https://github.com/pixelhandler/ember-off-canvas-components/blob/master/package.json#L54 for this project I had issues with broccoli sass and main.scss based on the way I chose to ship this addon a script compiles the sass to vendor dir. Perhaps try adding a main.scss to this project?