Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

source-map resource urls coming out strange #231

Closed

Description

@DBosley

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
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:

example: http://imgur.com/a/R73hV
scss loader config

{
          test: /\.scss$/,
          use: [{
              loader: 'style-loader',
              options: {
                sourceMap: true,
              }
            },
            {
              loader: 'css-loader',
              options: {
                sourceMap: true,
              }
            },
            {
              loader: 'postcss-loader',
              options: {
                sourceMap: true,
                //parser: require('postcss-scss'),
              }
            },
            {
              loader: 'sass-loader',
              options: {
                includePaths: [
                  './src/styles/bootstrap',
                  './src/styles/partials'
                ],
                sourceMap: true,
              }
            },
          ],
          include: [helpers.root('src', 'styles')]
        }

What is the expected behavior?
relative urls for sourcemaps, or at least only one absolute url

Please mention other relevant information such as your webpack version, Node.js version and Operating System.
webpack: 2.5.1
node: 6.10.3
windows 10

Activity

  1. DBosley commented on May 9, 2017

    @DBosley
    Author

    This issue seems to affect multiple loaders. Posted the same issue on all affected loaders:
    webpack/css-loader#529
    webpack/sass-loader#451
    #231
    webpack/postcss-loader#224

  2. added this to the milestone on May 9, 2017
  3. 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

  4. removed this from the milestone on May 12, 2017
  5. removed their assignment
    on May 12, 2017
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