Coder Social home page Coder Social logo

Usage in Addon about ember-cli-less HOT 7 CLOSED

gpoitch avatar gpoitch commented on June 5, 2024
Usage in Addon

from ember-cli-less.

Comments (7)

knownasilya avatar knownasilya commented on June 5, 2024

What are you trying to do with less in your addon?

from ember-cli-less.

svkangal avatar svkangal commented on June 5, 2024

https://github.com/gdub22/ember-cli-less#usage-in-addons, My addon styles are in less, want to convert them to css when anyone uses the addon.

from ember-cli-less.

knownasilya avatar knownasilya commented on June 5, 2024

As far as I'm aware, you must put it in the dependencies otherwise it won't be installed when a user installs your addon, since devDependencies are only installed when you do npm install from within the project folder. Also, I don't think that the addon will be a direct dependency of the users project, since it's not defined in their package.json so ember-cli doesn't pick it up.

from ember-cli-less.

svkangal avatar svkangal commented on June 5, 2024

Thanks for replying. Right now its confusing on what is the right way to include styles and the discussion over here also got me confused.
ember-cli/ember-cli#1853

from ember-cli-less.

knownasilya avatar knownasilya commented on June 5, 2024

For addons I usually import inside the index.js in the included hook. I think that works with the preprocessor if it's in the deps.

https://github.com/knownasilya/ember-cli-toggle/blob/master/index.js#L10

from ember-cli-less.

knownasilya avatar knownasilya commented on June 5, 2024

I'm going to close this, feel free to continue asking questions here (related to this topic).

from ember-cli-less.

svkangal avatar svkangal commented on June 5, 2024

Thanks for the help

from ember-cli-less.

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.