Skip to content

CSS output is broken /******/  #9443

@lancemonotone

Description

@lancemonotone

Bug report

What is the current behavior?
I am attempting to build a CSS file from a SCSS file. Seemingly at random, the output CSS file contains the correct css styles, but they are followed by a bunch of lines beginning with /******/ and what appears to be internal webpack code. Sometimes I'm able to successfully complete a build by deleting comments in the original SCSS files, but then I build again - without changing anything - and the output breaks again.

Truncated example of contents of output CSS file:

.some-style{foo: bar;}re__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}

If the current behavior is a bug, please provide the steps to reproduce.

I've included a gist of my files. If this isn't helpful, please let me know and I'll paste the output into this bug report.

https://gist.github.com/lancemonotone/cb1f98e9545875b30592d4d53e9f7c97

What is the expected behavior?
A correctly-parsed, minified, comment-stripped CSS file should be output.

Other relevant information:
webpack version: 4.31.0
Node.js version: v8.9.1
Operating System: Windows 10
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions