bholloway / resolve-url-loader

Webpack loader that resolves relative paths in url() statements based on the original source file
563 stars 70 forks source link

wrong output css files, it seems like all the other css files are same as the first one #120

Closed purple-force closed 5 years ago

purple-force commented 5 years ago

This is the minimum demo: https://github.com/purple-force/resolve-url-loader-bug

src/a/index.scss and src/b/index.scss import font files with relative path.

When npm start or npm run build,the result css file a.css and b.css seems the same,except the filename.

Is there any problem with webpack.config.js? @bholloway

bholloway commented 5 years ago

I had a quick look seems fine.

I’ll have to take a closer look to find the problem.

purple-force commented 5 years ago

Any progress?

bholloway commented 5 years ago

Sorry @purple-force not yet. Thanks for the reminder tho, I'll try to look today.

bholloway commented 5 years ago

I think your build is working correctly.

It looks like your .ttf font is way too small. I don't think it has enough glyphs in it. I have not looked at your other fonts.

I downloaded a random .ttf from the net and used it instead and the page renders correctly.

bholloway commented 5 years ago

Closing this due to inactivity.

Works for me, IMO the problem is not related to the font not the css build.