webpack-contrib / mini-css-extract-plugin

Lightweight CSS extraction plugin
MIT License
4.67k stars 388 forks source link

import "@scope/dist/main.css" extract not work #957

Closed realhao closed 2 years ago

realhao commented 2 years ago

Bug report

Actual Behavior

node@v14.18.1 webpack@4.28.4 mini-css-extract-plugin@0.5.0

entry index.ts has import "@scope/dist/main.css" after build, inital chunk css has nothing about that.

if replace import "scope/dist/main.css" after build, it works.

Expected Behavior

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

alexander-akait commented 2 years ago

Thank you for creating this issue. However, issues need to follow one of our templates so that we can clearly understand your particular circumstances.

Please help us help you by recreating the issue using one of our templates.

Please fill out all fields