Comments (8)
Hello @exocornet, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction
will be closed if no activities in 14 days.
from rspack.
Hello, I provide a repository
https://github.com/exocornet/express-template/tree/rspack
File rspack.config.js 139 line. I had to disable caching to work correctly locally, but the collector began to work slower.
https://github.com/exocornet/express-template/blob/rspack/rspack.config.js
I connect the fonts in fonts.scss
https://github.com/exocornet/express-template/blob/rspack/src/shared/styles/layer-generic/fonts.scss
I also have two more questions:
-
Will there be plugin support webpack-remove-empty-scripts? It doesn't work now, you have to do it with additional code in file server.js 208 - 220 line.
webpack-remove-empty-scripts
https://github.com/exocornet/express-template/blob/rspack/server.js -
Will there be full support for the plugin in the near future image-minimizer-webpack-plugin? It is sorely missed the way it worked before.
Thanks for the help and quick response.
from rspack.
cc @jerrykingxyz , seems to be a bug of incremental build while handling assets, I made a more simple repro here, just rspack serve
and modify the other.css
from rspack.
@exocornet you can try set output.clean to false to workaround. The other two questions about plugin compatibility @h-a-n-a cc
from rspack.
cc @jerrykingxyz , seems to be a bug of incremental build while handling assets, I made a more simple repro here, just
rspack serve
and modify theother.css
Hello. Yes, that's right, that's true. But webpack did not have this bug. Can you please tell me how to solve this problem? And also tell me, with the other two questions, are there already answers or solutions?
from rspack.
@exocornet you can try set output.clean to false to workaround. The other two questions about plugin compatibility @h-a-n-a cc
Thank you very much, everything works. But I would like to have support like in webpack. And so I have to set isProd for clean. Although this may be more correct for local assembly, here I rely on your expertise.
@h-a-n-a Hello, I was advised to contact you regarding the two questions above. Can you suggest something?
I also have two more questions:
Will there be plugin support webpack-remove-empty-scripts? It doesn't work now, you have to do it with additional code in file server.js 208 - 220 line.
webpack-remove-empty-scripts
https://github.com/exocornet/express-template/blob/rspack/server.jsWill there be full support for the plugin in the near future image-minimizer-webpack-plugin? It is sorely missed the way it worked before.
Thanks for the help and quick response.
from rspack.
@exocornet you can try set output.clean to false to workaround. The other two questions about plugin compatibility @h-a-n-a cc
Thank you very much, everything works. But I would like to have support like in webpack. And so I have to set isProd for clean. Although this may be more correct for local assembly, here I rely on your expertise.
@h-a-n-a Hello, I was advised to contact you regarding the two questions above. Can you suggest something?
I also have two more questions:
Will there be plugin support webpack-remove-empty-scripts? It doesn't work now, you have to do it with additional code in file server.js 208 - 220 line.
webpack-remove-empty-scripts
https://github.com/exocornet/express-template/blob/rspack/server.js
Will there be full support for the plugin in the near future image-minimizer-webpack-plugin? It is sorely missed the way it worked before.Thanks for the help and quick response.
The plugin's relying on a few hooks that does quite expensive jobs on the JS side. We're not likely to support this.
https://github.com/webdiscus/webpack-remove-empty-scripts/blob/84157f850976c00474a97cc954f2a9837c2c0347/src/index.js#L53-L102
from rspack.
Since the bug has been resolved, I will close this issue.
from rspack.
Related Issues (20)
- Multiple assets emit different content to the same filename HOT 2
- [Bug]: Output contains a __webpack_require__(null) call which causes a crash
- [Feature]: support for exclude option by LightningCssMinimizerRspackPlugin
- [Bug]: The output code contains an incorrect moduleId when using a ternary inside a require call HOT 3
- Module not found: Can't resolve "...xxxx./xxx.js" HOT 3
- [Bug]: Does not work with AWS Lambda with TopLevelAwait enabled (ESM)
- [Feature]: `ChunkGraph.setModuleId`
- [Feature]: Provides a method to get the entire dependency module tree based on the entrypoint module HOT 1
- [Question]: Support for Deno runtime
- [Bug]: Seems that require.context always include subdirs even though set as false
- [Tracking]: Dependencies related governance [JS/pnpm] [Rust/Cargo] HOT 1
- [Bug]: Panic occurred at runtime `[email protected]` HOT 3
- [Bug]: production build with mjs empty module results in error
- [Bug]: Removing CSS File while runnning `npm run dev` results in compile error HOT 1
- [Feature]: Module.addBlock API HOT 1
- [Tracking]: enable biome lint and format rules HOT 1
- [Bug]: `html-rspack-plugin` child compilation fail when used with `case-sensitive-paths-webpack-plugin` HOT 2
- [Bug]: Panic occurred at runtime HOT 3
- [Bug]: webpackMissingModule with relative import HOT 3
- [Bug]: 也更新后报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.