webpack-cli: Bug: css bundle file not used / applied

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

Bug

What is the current behavior? The supplied bundle file for CSS is not used.

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

Create a project with PostCSS and provide a value to If you want to bundle your CSS files, what will you name the bundle? (press enter to skip

What is the expected behavior? The bundle name should be used in the generated config.

If this is a feature request, what is motivation or use case for changing the behavior?

Please paste the results of webpack-cli info here, and mention other relevant information such as programming language.

  System:
    OS: macOS High Sierra 10.13.4
    CPU: x64 Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz
  Binaries:
    Node: 8.9.0
    Yarn: Not Found
    npm: 6.0.0
  Browsers:
    Chrome: 66.0.3359.139
    Firefox: Not Found
    Safari: 11.1
  npmGlobalPackages:
    webpack-cli: 2.1.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 31 (31 by maintainers)

Most upvoted comments

I think this is fixed in webpack-cli@3, please reopen or message me to do that if you think it’s still an issue! πŸ˜„

I’d love to take this! πŸ—‘ πŸ‘Š 🍰

Check out the addProperty function history on master

@buoyantair I think you can try the changes done in #470. That should fix the error.

Ah! πŸ˜„ The contributions guidelines are in process. #247

@buoyantair Can you try adding test cases to recursive-parser and see the output snapshot?

I would also recommend going through addProperty() function here. This function does the job of generating AST tree for the webpack file.