Coder Social home page Coder Social logo

Comments (10)

maxmx avatar maxmx commented on May 24, 2024

Fixed by 546fe71

from bootstrap-stylus.

IceOnFire avatar IceOnFire commented on May 24, 2024

Hi maxmx,

Watch out because the .styl files in https://github.com/maxmx/bootstrap-stylus/tree/master/bootstrap still have the wrong path.

from bootstrap-stylus.

maxmx avatar maxmx commented on May 24, 2024

can you clarify @IceOnFire not sure I'm following.

from bootstrap-stylus.

IceOnFire avatar IceOnFire commented on May 24, 2024

Sure!

If you look at https://github.com/maxmx/bootstrap-stylus/blob/master/bootstrap/index.styl, it has all @imports looking like "bootstrap/something", while in version 4.0.x it doesn't. I see that with 546fe71 you corrected the script that builds the .styl files, but maybe you need to update the generated .styl files in the repository too.

from bootstrap-stylus.

krzysieki avatar krzysieki commented on May 24, 2024

@IceOnFire is right. There are still incorrect paths. All paths in index.styl should be relative to index.styl :) So if files are in the same folder, "bootstrap/something" shall be changed to "something"

from bootstrap-stylus.

maxmx avatar maxmx commented on May 24, 2024

Yeah, but that doesn't matter since the folder is passed in the paths option of stylus in index.js, hence if you are consuming this lib through npm and requiring it and using it as a stylus middleware, everything works.

I bumped the major version since it could potentially break people's project that were using custom builds.

see #81

from bootstrap-stylus.

IceOnFire avatar IceOnFire commented on May 24, 2024

That's the point, I'm not using bootstrap-styl as a middleware, I'm @import'ing it in my app.styl. My project broke because of this change in the index.styl from version 4.x to 5.x. Is there any problem if you correct the paths? Do you want me to do it for you?

from bootstrap-stylus.

maxmx avatar maxmx commented on May 24, 2024

If you paste the code you are using to build your stylus file here I will tell you where to add the property that will make this work with 5.x.x, otherwise stick to 4.x

from bootstrap-stylus.

IceOnFire avatar IceOnFire commented on May 24, 2024

I'm sorry I didn't quite explain myself well: bootstrap-styl works fine when files are built with my build scripts, I just found an issue when using the Atom editor and its preview package.

The previewer parses my app.styl file and traverses all its @import's to show a preview of the resulting css. Any previewer or linter that parse the .styl files on the fly will produce an error, so I still think it's better to correct the paths in the .styl files even if doing this doesn't affect builds.

from bootstrap-stylus.

maxmx avatar maxmx commented on May 24, 2024

The change was made because people found that they couldn't use multiple frameworks at the same time in the build pipeline that used @import variables; since the variables file would resolve to the last declared one, hence the @import bootstrap/variables, the directory can be seen as a namespace.

I just looked at the preview module for atom and it seems to support a per-lib config file. Would it be possible to add the bootstrap-styl base path to the config file, there is probably a path property you can change.

On Dec 23, 2015, at 17:31, Matteo Antony Mistretta [email protected] wrote:

I'm sorry I didn't quite explain myself well: bootstrap-styl works fine when files are built with my build scripts, I just found an issue when using the Atom editor and its preview package.

The previewer parses my app.styl file and traverses all its @import's to show a preview of the resulting css. Any previewer or linter that parse the .styl files on the fly will produce an error, so I still think it's better to correct the paths in the .styl files even if doing this doesn't affect builds.


Reply to this email directly or view it on GitHub.

from bootstrap-stylus.

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.