Git Product home page Git Product logo

import-resolve's People

Contributors

bignimbus avatar entioentio avatar firatsarlar avatar unimonkiez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

import-resolve's Issues

File names with underscore in them

Hey,
Great repo, needed something like that for a long time.
Was just about to fix the issue when I import a file like so:

@import './bla';

but the actual file name is _bla.scss for instance and it couldn't find it, but found out it been fixed already (here).
Do you care to upload a new version to npm?
Thanks in advance.

Make output optional

For larger import trees, quite a lot of output is produced in the console. Can a quiet option or something be added to prevent the console statements from being spit out? Seems trivial...

Resolve nested @imports

I was hoping this script would resolve nested @import statements, that is, if I @import a file that contains an @import, I would expect that to be resolved as well.

Any plans for this?

Terminal color reset not issued after combining files

When running the following script:

// stylus.js
var importResolve = require('import-resolve');
 
// spits out a master dist file with all your wonderful stylesheet 
// things concatenated 
importResolve({
    "ext": "styl",
    "pathToMain": "test.styl",
    "output": "dist/test.styl.css"
});

The colors used are not reset in the terminal:

screen shot 2017-05-23 at 11 59 29 am

Use constructors rather than functions

As it is, there's too much repetition in declaring and resetting variables so that no information is persisted when using one instance of import-resolve to do multiple operations. We can cut this down by moving some functionality and settings to a constructor function.

Can't concat bootstrap ..

I'm trying to concat bootstrap ( v4. alpha 5 )
giving main bootstrap file ( which imports all other mixins, vars etc )
this cause an infinitive loop,

to reproduce ..

in a new dir

npm install bootstrap@next ( which is v4. alpha5 currently )

importResolve({
"ext": scss,
"pathToMain": node_modules/bootstrap/scss/bootstrap.scss,
"output": ./out.scss
});

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.