-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting broken manifest generated .. scss files mapping to png, ttf, woff #208
Comments
A locally patched version applying the same fix appears to fix it : changing moduleAsset to :
and changing results in no scss entries in the manifest and correct values for the ttf files etc..
|
I implemented a fork which resolves my issue, but breaks 1 test case |
Also experiencing this issue. |
I have the same issue with CSS files.
It looks like these are files the css files use. It looks like the css itself gets built into one root css file that was defined in webpack.config.js:
And in index.js:
Where print.css is not included in the manifest file, which makes (a sort of) sense, because it doesn't reference images. In other words: this may be intended behavior. |
Same here. I have 2 entry points: The file Here's the (wrong) generated manifest json: {
"/assets/build/index.css": "/assets/build/index.519adaf6.css",
"/assets/build/index.js": "/assets/build/index.895c45a4.js",
"/assets/build/index.css.map": "/assets/build/index.519adaf6.css.map",
"/assets/build/index.js.map": "/assets/build/index.895c45a4.js.map",
"/assets/build/vendors.css": "/assets/build/ec161a74448ccf2c18beefe8cca2b44a.svg",
"/assets/build/vendors.js": "/assets/build/vendors.9b920610.js",
"/assets/build/vendors.css.map": "/assets/build/vendors.4330fee9.css.map",
"/assets/build/vendors.js.map": "/assets/build/vendors.9b920610.js.map"
} As it sees, Since I only need the chunks (js and exported css files) in the manifest file, my workaround is the plugin's filter: (FileDescriptor) => {
// fix for file-loader imported assets
return FileDescriptor.isChunk;
} However I'm not really sure if it's safe, but all seems working fine: |
I also had this issue when using file-loader and an svg image as background-image in my css. I temporarily fixed it by excluding svgs from the manifest.
|
Is this being worked on at all? It's causing a lot of headaches for me trying to setup a manifest in a new project. |
I have the same issue |
Note: The original post for this issue is likely a duplicate of #167 Hey all! I've taken over maintenance of the plugin and am doing some housecleaning. For Issues over a year old without a reproduction, we're going to go the route of closing them first. However, they're not dead! If the issue is still pending and still a problem, please reply with a reproduction and we'll reopen post-haste. Please provide a reproduction by choosing one of the options below:
|
version 2.2.0
webpack 4.41.2
mini-css-extract-plugin 0.8.0
part of manifest :
I found that webpack-assets-manifest fixed a similar bug webdeveric/webpack-assets-manifest#39 fixed in webdeveric/webpack-assets-manifest#40
The text was updated successfully, but these errors were encountered: