Comments (8)
Please link an addon that uses broccoli-sass
, I will take a look at it.
from ember-cli-compass-compiler.
https://github.com/Blooie/ember-cli-notifications
from ember-cli-compass-compiler.
Also keep this in mind: ember-cli/ember-cli#2363
from ember-cli-compass-compiler.
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.
@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.
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.
@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.
@AndrewJo 👏 👏 congratulations, I will review and merge ASAP.
from ember-cli-compass-compiler.
Related Issues (20)
- Asset subdirectories should compile to local path HOT 4
- Error when trying to build HOT 10
- 'ember-cli-sass-and-compass-compiler' should be the name for the repo HOT 2
- Default precision for compass is 5 -- need to increase it HOT 2
- Latest broccoli-funnel causes files to go in the wrong directory HOT 2
- CSS gets minified twice HOT 2
- Compile separated files? HOT 4
- Compiler executing twice HOT 2
- Ignore unrelated imported files
- Wrong output filename on Windows HOT 2
- Environment Variables HOT 1
- compiler works on windows environment but not on mac HOT 4
- Does not work with ember-component-css
- Is it supposed to be that slow? HOT 5
- Doesn't copy to [appname].css HOT 12
- Error: File not found: /app/styles/app.scss HOT 5
- can't get this to work in new ember app
- Compass Compile error when pushing to heroku HOT 3
- Not finding any sass files HOT 2
- CompassCompiler error due to invalid Compass option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-compass-compiler.