Comments (10)
Fixed by 546fe71
from bootstrap-stylus.
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.
can you clarify @IceOnFire not sure I'm following.
from bootstrap-stylus.
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.
@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.
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.
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.
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.
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.
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)
- Conflicting module names HOT 9
- @require mixins in modules for better dependency management HOT 2
- @extend .clearfix in mixins HOT 3
- Block-grid for Bootstrap HOT 5
- Failed to locate @import file bootstrap/variables.styl HOT 3
- Why imported paths have "bootstrap" folder? HOT 4
- Import font files HOT 1
- navbar build fails HOT 5
- Tag v3.3.6 ?
- index.styl suppose under root? HOT 14
- Stylus bootstrap loaded but not compiled with Webpack HOT 18
- How would i go about adding a XL grid breakpoint with this? HOT 2
- Is the relative path in `index.styl` wrong? HOT 3
- Make it possible to deploy to Webjars HOT 1
- Question: which files just for the Bootstrap grid? HOT 3
- Error with Webpack Can't resolve '../fonts/glyphicons HOT 7
- Webpack's CSS Module and PostCSS loaders underisbly applied on Bootstrap as well
- Index.sty failed to locate imports HOT 1
- bootstrap 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-stylus.