Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use #65

Closed
talgautb opened this issue Sep 26, 2015 · 8 comments
Closed

how to use #65

talgautb opened this issue Sep 26, 2015 · 8 comments

Comments

@talgautb
Copy link

Sorry but i don't understand how to add compass-mixins to own project.
added @import "compass" but there are errors :(
or @import "../bower_components/compass-mixins/lib/compass" ?
but is it ok ?!

@talgautb
Copy link
Author

may be some info to Read.me - Usage ?

@luisfmsouza
Copy link

I've imported as your import... and I agree that it seems wrong.

@talgautb
Copy link
Author

talgautb commented Oct 1, 2015

easy way to add only compass stylsheets on project)

@IAMtheIAM
Copy link

Please add usage instructions on the readme file. I agree it is confusing to implement.

@talgautb
Copy link
Author

talgautb commented Oct 2, 2015

@Igosuki ?

@ItIsInspiring
Copy link

I agree with the comments. It is not easy to understand how to configure compass-mixin.
it would be nice to have a more detailed tutorial about this plugin.
Thanks

@kevinelliott
Copy link

Why did this get closed? The instructions were never added.

@stephenasamoah
Copy link

stephenasamoah commented Apr 15, 2017

Was having trouble too, but here's how I got it to work:

  1. Install the module via npm.
  2. Inside the scss file, import the module, e.g. @import "../../../../node_modules/compass-mixins/lib/compass";

or if using bower:

  1. add the module as a dependency in your bower.json file like so:
    {
    "name": "imprv-workflow",
    "description": "Improved Workflow",
    "main": "build/index.html",
    "authors": [
    "Kwesi Jnr."
    ],
    "license": "MIT",
    "homepage": "",
    "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
    ],
    "dependencies": {
    "compass-mixins": "~1.0.2"
    }

    }

  2. Run $ bower install

  3. Import it the same way as stated above but with bower_components in the path, not node_modules:
    @import "../../../../bower_components/compass-mixins/lib/compass";

I observed that using bower_components was slightly faster than node_modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants