Comments (21)
hi @artsyca i've the same issue, could you please compare my repo https://github.com/Axxon/ember-cli-minimal-tree/tree/front2 if a done a mistake ?
from ember-cli-sass.
@Axxon : https://github.com/Axxon/ember-cli-minimal-tree/blob/front2/tests/dummy/app/styles/app.css according to the instructions, this should be app.scss
but even so it hasn't worked for me..
from ember-cli-sass.
@artsyca I tried like you, without success. (i pushed that).
from ember-cli-sass.
I had the same issue here
from ember-cli-sass.
So, a cool guy could share me a advise to integrate sass into my addon ?
from ember-cli-sass.
There seem to be some more issues with ember-cli-sass & ember-cli:
ember-cli/ember-cli#4084
ember-cli/ember-cli#3644
ember-cli/ember-cli#2905 (lists more related issues)
from ember-cli-sass.
Thanks @fpauser. Yes there definitely do seem to be issues outside the scope of ember-cli-sass here. Unfortunately I've just joined an early stage startup as a tech co-founder, so I simply do not have a second to look into this, sorry. Luckily the source code's available so I'm happy to review and publish any PRs from the community. I'm also open to adding other collaborators on this project as well if anyone is interested.
from ember-cli-sass.
Congratulations @aexmachina I wish you all the best.
from ember-cli-sass.
As it seems the last working version of ember-cli-sass was v4.0.0-beta.5 (discovered it by looking at ember-paper's package.json).
Something in v4.0.0-beta.6 breaks compatibility with ember-addons:
v4.0.0-beta.5...v4.0.0-beta.6
from ember-cli-sass.
Seems like tryFile()
@ https://github.com/aexmachina/ember-cli-sass/blob/master/index.js#L21 is problematic. Unsure if this is really an ember-cli problem or if the scss/sass-check should also deal with the inputTrees.
from ember-cli-sass.
SASSPlugin.prototype.toTree
to addon:
> inputPath
'/'
> outputPath
'/'
> tree
'/file/to/my/project-addon/addon/styles'
SASSPlugin.prototype.toTree
to dummy app:
> inputPath
'/app/styles'
> outputPath
'/assets'
> tree
{ inputTrees:
[ { inputTrees: [Object],
options: [Object],
description: 'TreeMerger (ExternalTree)' },
{ inputTrees: [Object], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [Object], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [Object], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [Object], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTrees: [], options: [Object] },
{ inputTree: 'tests/dummy/app/styles',
_includeFileCache: {},
_destinationPathCache: {},
_tmpDir: '/file/to/my/project-addon/tmp/funnel-dest_Hjw6n6.tmp',
srcDir: '/',
destDir: '/app/styles',
destPath: '/file/to/my/project-addon/tmp/funnel-dest_Hjw6n6.tmp/app/styles',
_instantiatedStack: 'Error\n at new Funnel (/file/to/my/project-addon/node_modules/... (length: 852)' } ],
options: { description: 'TreeMerger (stylesAndVendor)', overwrite: true },
description: 'TreeMerger (stylesAndVendor)' }
There is a problem on tryFile
when run the addon tree, inputPath
is '/'
from ember-cli-sass.
Thanks for the investigation, you were right that that PR introduced the problem. Root cause is the issue above.
I've added an option in v4.0.1 that allows you to specify the file extension, which bypasses the tryFile
lookup. So until the underlying issue is resolved you need to specify this option when using inside an addon.
from ember-cli-sass.
I'm still having issue with v4.0.1 even after having extension
set in the addon's Brocfile:
var app = new EmberAddon({
sassOptions: {
extension: 'scss',
},
});
Also followed instructions in the readme for addons usage, but the content of addon/styles/addon.scss
is not showing in dist/assets/vendor.css
.
Am I missing anything?
from ember-cli-sass.
@justin-lau the pull-request #57 will fix your problem
from ember-cli-sass.
@dukex I thought the extension
option was introduced as a temporary workaround to this issue... With your fixed branch I now understand it was actually meant for the scss files in the dummy app. Thanks!
from ember-cli-sass.
Any news on this? I'm actually waiting for the fix, so I'm still on 4.0.0-beta5
from ember-cli-sass.
@temo44 We are waiting the pull request #57
from ember-cli-sass.
@temo44 you should be able to work around that issue by specifying the extension
option.
from ember-cli-sass.
+1 also having problems getting addon.scss compiling to dist/assets/vendor.css even with specifying:
// ember-cli-build.js
sassOptions: {
extension: 'scss' // or sass
}
I am currently on 4.2.0
from ember-cli-sass.
Hi everyone, given #78 was merged, now with 5.0.0 you can use sass on addon.
I think this issue can be closed
from ember-cli-sass.
Be aware that you now need to specify extension
option if you're not using .scss
from ember-cli-sass.
Related Issues (20)
- Exclusion Doesn't Work in passthrough
- Git tags missing
- feature request: import SCSS from another npm module HOT 4
- Default SASS implementation HOT 12
- 8.0.1 breaking app HOT 1
- Please provide a changelog HOT 3
- Up for adoption? HOT 12
- Bug: incorrect options handling causes broccoli-funnel error
- includePaths doesn't recognise node_modules in yarn workspace HOT 1
- Going from 10.0.0 to 10.0.1 breaks our build HOT 1
- SASS rebuilding time is very high HOT 2
- Update addon section
- [bug] sass funnel being rebuilt on files that are not (.scss|.css|.sass)
- What is correct way to use dependencies on both of addon and dummy app? HOT 1
- Reopening #133
- Production builds produce invalid CSS HOT 1
- broccoli sass source maps outdated HOT 4
- [QUESTION] Should the app add the scss from the addon too?
- Does not work with Embroider HOT 5
- Multiple css outputs after outputPaths is removed? HOT 1
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-sass.