Skip to content

includePaths option prepends sass folder path to file locations #425

Closed

Description

@asolopovas

Hi,

Recently I started to get strange effect, the sourceMap refferal to files from included paths prepends path of sass directory. So in my source-maps refers to files like C:/vhosts/project/resources/assets/sass/C:\vhosts\project/vendor\zurb\foundation\scss\grid\_gutter.scss
instead of 'C:\vhosts\3oakdb/vendor\zurb\foundation\scss\grid_gutter.scss',

here is the link to my webpack.config

Activity

  1. asolopovas commented on Apr 6, 2017

    @asolopovas
    Author

    I have updated my sass-loader-test repo https://github.com/asolopovas/sass-loader-test, to reflect the problem if you start index.html in public folder and inspect p.animate tag in inspect section the path will be shown as D:/path/sass-loader-test/resources/assets/sass/D:\path\sass-loader-test/resources\assets\sass\app.scss

  2. asolopovas commented on Apr 6, 2017

    @asolopovas
    Author

    Tested it on windows ubuntu bash and sourcemaps path was fine.

  3. asolopovas commented on Apr 27, 2017

    @asolopovas
    Author

    Same happens if you do run npm run test-source-map on the package itself so clearly is something wrong about it.

  4. asolopovas commented on Apr 27, 2017

    @asolopovas
    Author

    Please respond someone its been a month since I created an issue. I have spent some time playing around and found that if I changeline 74 of loader.js, to result.map.sourceRoot = ''; problem goes away

  5. asolopovas commented on Apr 27, 2017

    @asolopovas
    Author

    @jhnns it may be related to #366

  6. alexander-akait commented on May 3, 2017

    @alexander-akait
    Member
  7. alexander-akait commented on May 3, 2017

    @alexander-akait
    Member

    @asolopovas hm, works fine for me, can your explain more information? Whatbrowser your are use?If your can create screenshots this bug?

  8. asolopovas commented on May 3, 2017

    @asolopovas
    Author

    @evilebottnawi Hi thanks for responding, here is the screenshots, I have tested it on different machines and few various projects everywhere I get the same problem, I eventually gave up and used gulp sass to generate my stylesheets along with browser-sync to inject them on fly it actually does it a bit faster. If you look at the repository provided above and generate it by simply running npm install + composer install + webpack, it will generate js script with source code in it and then if you open index.html you will see the error that I provided screenshots for.
    screenshot 1
    screenshot 2

  9. alexander-akait commented on May 3, 2017

    @alexander-akait
    Member

    @asolopovas oh really, tomorrow try to found solution 👍

  10. alexander-akait commented on May 11, 2017

    @alexander-akait
    Member

    i hate windows, i spend about 4 hours just to build start to work 😭

  11. asolopovas commented on May 11, 2017

    @asolopovas
    Author

    @evilebottnawi I love windows, I hate their filesystem, they should have adopted it long time ago and nobody would be using mac right now. But if you fiddle a bit you can figure thing oit

  12. alexander-akait commented on May 11, 2017

    @alexander-akait
    Member

    @asolopovas i don't use mac 😄

  13. alexander-akait commented on May 11, 2017

    @alexander-akait
    Member

    Confirmed, start to searching solution

  14. alexander-akait commented on May 11, 2017

    @alexander-akait
    Member

    Seems related to mozilla/source-map#91

  15. michael-ciniawsky commented on May 11, 2017

    @michael-ciniawsky
    Contributor
  16. alexander-akait commented on May 12, 2017

    @alexander-akait
    Member

    Not related to style-loader, feel free to reopen if after merge webpack/css-loader#532 error still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions