Skip to content

sourcemap doesn't work as expected with css-modules #738

Closed
@hexpunk

Description

@hexpunk

What is the current behavior?
With sourceMap and modules both enabled, the soucemaps don't seem to work as expected. The source that shows in the browser's dev tools is the JavaScript, not the actual CSS.

If the current behavior is a bug, please provide the steps to reproduce.
I created this repository to minimally reproduce this issue.

What is the expected behavior?
I'd expect to see the actual CSS from the source files (perhaps with generated class names).

Please mention other relevant information such as your webpack version, Node.js version and Operating System.
I've tested this on Ubuntu 16.04 and MacOS (whatever the latest version is).
node: 8.11.1
webpack: 4.14.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions