Coder Social home page Coder Social logo

Comments (8)

quaertym avatar quaertym commented on August 16, 2024

Please link an addon that uses broccoli-sass, I will take a look at it.

from ember-cli-compass-compiler.

lolmaus avatar lolmaus commented on August 16, 2024

https://github.com/Blooie/ember-cli-notifications

from ember-cli-compass-compiler.

lolmaus avatar lolmaus commented on August 16, 2024

Also keep this in mind: ember-cli/ember-cli#2363

from ember-cli-compass-compiler.

shaunc avatar shaunc commented on August 16, 2024

having problems with https://github.com/yapplabs/ember-modal-dialog

EDIT ... right now I'm using compassOptions to make sure that addon sass is accessible:

compassOptions: {
  outputStyle: 'expanded',
  importPath: [
    'bower_components/bootstrap-sass/assets/stylesheets',
    'bower_components',
    'node_modules/ember-modal-dialog/app/styles/'
  ]

This works -- but is this how it should work? Or should /app/styles/... be automatically added to path?

from ember-cli-compass-compiler.

quaertym avatar quaertym commented on August 16, 2024

@stefanpenner Can you help us here? Can addon styles be compiled with ember-cli-compass-compiler instead of broccoli-sass? Or addon decides its preprocessor?

from ember-cli-compass-compiler.

AndrewJo avatar AndrewJo commented on August 16, 2024

With recent Ember CLI versions (I'm currently on 1.13.x), I believe ember-cli-sass is the package to look at for compiling SASS instead of broccoli-sass.

However, I looked into this and upon analyzing the source code, realized that there's a bug in https://github.com/quaertym/ember-cli-compass-compiler/blob/master/index.js#L40:

var inputTrees = [inputPath];

Should really be replaced with:

var inputTrees = [tree];

Otherwise, you will get an error like this when running ember build to build an addon that depends on ember-cli-compass-compiler:

Build failed.
ENOENT: no such file or directory, lstat ''
Error: ENOENT: no such file or directory, lstat ''

Other Ember CLI preprocessor addons already do this:

I'll submit a PR that fixes this. There's also an issue of passing compass options for addons which I'll report separately.

from ember-cli-compass-compiler.

AndrewJo avatar AndrewJo commented on August 16, 2024

@quaertym: I've managed to fix it without modifying a single line of code broccoli-compass-compiler. I must say, it was a fun problem to solve! 😁

from ember-cli-compass-compiler.

quaertym avatar quaertym commented on August 16, 2024

@AndrewJo 👏 👏 congratulations, I will review and merge ASAP.

from ember-cli-compass-compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.