You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2.0.3] source map urls are a off (map.sources) #224
Using postcss-loader (only using autoprefixer plugin, no extra configurations) combined with sass-loader, css-loader, and style-loader causes the resource URL for sourcemaps to be strange:
I actually disabled bootstrap loader because I saw it was making the problem even worse.
here's the path I'm getting with the above config: C:/Users/Dave/_DEV/ModernEra/bdhp_ui/src/styles/C:\Users\Dave\_DEV\ModernEra\bdhp_ui/src\styles\bootstrap\_bootswatch.scss
@evilebottnawi I requested all the fuss, but discussion about it kicked-off in the PostCSS Gitter Channel then, we need to test with a simpler setup (no angular-starter-seed) 😛
@evilebottnawi Yes I am facing the same issue on windows machine (weird path : C:/Projects/test/node_modules/bootstrap/dist/css/C:\scss\utilities\_flex.scss), but it is not related to sass-loader (I am not using sass-loader).
Activity
DBosley commentedon May 9, 2017
This issue seems to affect multiple loaders. Posted the same issue on all affected loaders:
webpack/css-loader#529
webpack/sass-loader#451
webpack/style-loader#231
#224
michael-ciniawsky commentedon May 9, 2017
I resolve the source paths for maps https://github.com/postcss/postcss-loader/blob/master/lib/index.js#L151, as according to @ sokra it should be the case, but maybe there is still something wrong. Could you please provide more info the example image is hard to ready (small) && uses
bootstrap-loaderwhich I have no context about 😛 . You can't currently debug your CSS in DevTools at all ?[-]webpack sourcemap urls are a bit off[/-][+][2.0.3] source map urls are a off (`map.sources`)[/+]DBosley commentedon May 10, 2017
I actually disabled bootstrap loader because I saw it was making the problem even worse.
here's the path I'm getting with the above config:
C:/Users/Dave/_DEV/ModernEra/bdhp_ui/src/styles/C:\Users\Dave\_DEV\ModernEra\bdhp_ui/src\styles\bootstrap\_bootswatch.scssDBosley commentedon May 10, 2017
This is my styles folder

styles.scss:
michael-ciniawsky commentedon May 10, 2017
Coud you please provide your
webpack.config.jsaswell 😛 and maybetree myProjecton the CLImichael-ciniawsky commentedon May 10, 2017
I wonder why the are concatenated 😟 regradless if relative or absolute
DBosley commentedon May 10, 2017
My project is based off this starter project:
https://github.com/AngularClass/angular2-webpack-starter
my configs:
webpack.common.js:
webpack.dev.js:
DBosley commentedon May 10, 2017
project tree
alexander-akait commentedon May 10, 2017
@DBosley please don't put all code here, create gist or test repo. This prevents reading information about the problem. Thanks!
@michael-ciniawsky seems bugs only for
windowsusers and related tosass-loader.michael-ciniawsky commentedon May 10, 2017
@evilebottnawi I requested all the fuss, but discussion about it kicked-off in the PostCSS Gitter Channel then, we need to test with a simpler setup (no angular-starter-seed) 😛
pgmanutd commentedon May 10, 2017
@evilebottnawi Yes I am facing the same issue on windows machine (weird path :
C:/Projects/test/node_modules/bootstrap/dist/css/C:\scss\utilities\_flex.scss), but it is not related to sass-loader (I am not using sass-loader).Here are my css loaders:
It was working fine @1.3.3, but not @2.x.x
michael-ciniawsky commentedon May 11, 2017
https://github.com/postcss/postcss-loader/blob/master/lib/index.js#L149 is the relevant part that changed between
v1.0.0=>v2.0.0I'm not on windows, but thought
path.resolve()is handling theposix/win32path.sepby default , so my apologise if that isn't the case 😛michael-ciniawsky commentedon May 11, 2017
webpack/css-loader#532