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

Empty sourcemaps? #56

Closed
at0g opened this issue May 12, 2015 · 7 comments
Closed

Empty sourcemaps? #56

at0g opened this issue May 12, 2015 · 7 comments

Comments

@at0g
Copy link

at0g commented May 12, 2015

When clicking on the line numbers to a styles file processed with stylus-loader, the source file is empty.

The issue can be reproduced with a minimal config from the repo below:

https://github.com/at0g/webpack-css-sourcemaps

@jhicken
Copy link

jhicken commented Sep 14, 2015

I have the same issue. I am using import-glob-loader to load in my stylus files. I haven't dug in to figure out what going on yet though.

@mzgoddard
Copy link
Collaborator

@jhicken Can you post some of your import-glob-loader usage? I haven't used import-glob-loader and some insight into your usage may help if it isn't vanilla to its docs (haven't looked yet.)

@jhicken
Copy link

jhicken commented Sep 15, 2015

Pulled from my package.json
"import-glob-loader": "^1.1.0"

My bootstrap file uses this to load in the styles.
import 'style!css?sourceMap!stylus!import-glob!./style.pattern';

style.pattern look like this.
@import './**/*.styl';

Here is what I get looking at the DOM.
screen shot 2015-09-15 at 10 27 50 am

When I pull up the actual styl file that is shows that the code should be on line 9...
screen shot 2015-09-15 at 10 35 42 am

So as you can see. it kinda looks like its working ish... Accept not really.

@mixtur
Copy link

mixtur commented Oct 16, 2015

+1

@PinkyJie
Copy link

I've also encontered this issue, my config is

{
    test: /\.styl$/,
    loader: ExtractTextPlugin.extract('style', 'css?sourceMap!stylus')
},

Chrome can get the correct .styl file line number, but when clicking into it, it shows null with a incorrect styl file path.

2015-11-14 10 28 20

null

/** WEBPACK FOOTER **
 ** webpack:///stylus-loader!./source/app/components/home-hero/source/app/components/home-hero/home-hero.styl
 **/

the correct file path is source/app/components/home-hero/home-hero.styl, but it shows source/app/components/home-hero/source/app/components/home-hero/home-hero.styl.

@singggum3b
Copy link

+1, i'm experiencing the same issue

@Cweili
Copy link

Cweili commented Jan 19, 2016

+1, I have the same issue.

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

7 participants