haithembelhaj / compass-importer Goto Github PK
View Code? Open in Web Editor NEWA node-sass compass importer
A node-sass compass importer
Hi,
I wondered why you are using a private fork of compass-mixins?
And if it is actually required, I think it should be updated, they released 3 versions since your last update.
I basically was looking for the input placeholder mixin (compass/css3/user-interface) that was missing from the old version.
Thanks.
I encountered slow render times when on a slow or non existing internet connection.
As it seems, your module is looking for newer compass mixins every time a sass compile is triggered:
index.js line: 21
request.head(githubUrl)
.on('response', function (res) {
if (oldHeaders.etag === res.headers.etag)
return done({file: 'compass-mixins-master/lib/' + url});
download()
});
Needs to just return the object literal if done() is undefined.
Hi,
I am using Grunt Sass and everytime I run my grunt task, it hangs saying "downloading compass", and no more. .
I've been trying to dig into the issue , and I found ".compass" folder is missing, therefore headers.json does not exist.
What create this folder and how? I have reinstalled many times using
npm install --save-dev compass-importer
, I am still gettting the same message u.u
Thanks
compass-importer": "^0.1.3"
npm v 2.14.12
Node v4.2.6
It would be nice if you could use grunt.log
instead of console.log
.
I already forked this repository and can implement this...
Hello,
Afer upgrading node-sass to 3.5.3 I started getting the following error:
[Error running Gulp] node_modules/compass-importer/.compass/compass-mixins-master/lib/compass/functions/_lists.scss
Error: Functions may not be defined within control directives or other mixins.
on line 81 of node_modules/compass-importer/.compass/compass-mixins-master/lib/compass/functions/_lists.scss
>> @function compact($vars...) {
--^
When using the old node-sass 3.4.1 there's no error, so I guess there's some incompatibility between these packages.
I am using grunt-sass to render sass files.
When using inside scss file:
@import "compass/reset";
I get the follwoing error message:
verify compass version ...
>> file to import not found or unreadable: reset
Hey, Why this error occur every time i try to compile. can u please help me out.
Im working with Angule-CLI
Node V4.4.5
G:\Workspaces\ng_testAppV2\node_modules\compass-importer\index.js:28
return done({file: resolve(libPath, path)})
^
TypeError: done is not a function
at Object.importer (G:\Workspaces\ng_testAppV2\node_modules\compass-importer\index.js:28:10)
at options.importer (G:\Workspaces\ng_testAppV2\node_modules\node-sass\lib\index.js:383:31)
at Object.module.exports.renderSync (G:\Workspaces\ng_testAppV2\node_modules\node-sass\lib\index.js:406:23)
at CompassPlugin.compile (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\lib\broccoli\angular-broccoli-compass.js:43:23)
at G:\Workspaces\ng_testAppV2\node_modules\angular-cli\lib\broccoli\angular-broccoli-compass.js:31:12
at Array.forEach (native)
at CompassPlugin.build (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\lib\broccoli\angular-broccoli-compass.js:29:24)
at G:\Workspaces\ng_testAppV2\node_modules\angular-cli\node_modules\broccoli-caching-writer\index.js:152:21
at lib$rsvp$$internal$$tryCatch (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (G:\Workspaces\ng_testAppV2\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1198:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
There is an error while trying to import animation module:
@import "compass/css3/animation";
Results in:
>> file to import not found or unreadable: animation/core
>> Current dir: /[path]/node_modules/compass-importer/.compass/compass-mixins-master/lib/compass/css3/
>> Line 2 Column 9 node_modules/compass-importer/.compass/compass-mixins-master/lib/compass/css3/_animation.scss
Because i am using the inline-image function of compass it need to know the images_dir usually we put this configuration in config.rb
I've recently updated to compass-importer 0.1.0
.
Since then it won't download anymore. It stops on "downloading compass ...".
It works as aspected with version 0.0.3
.
I use a temporarily directory. It would be pretty nice if I can specify the cache directory.
Using this in conjunction with Grunt yields the following error: File to import not found or unreadable: sprite/global/*.png.
.
Edit: Found out this is merely a polyfill for mixins, not spriting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.