Cannot Remove bundled hash in filename of CSS
See original GitHub issueBug The reason for below change is i can’t update the hashed css file name is other’s website every time it gets builded**
Currently filename: '[name].[contenthash:5].css'
for isProd
I cannot override the above file name in preact.config.js as per below code
const cssExtractPlugin = helpers.getPluginsByName(config, "MiniCssExtractPlugin")
cssExtractPlugin.forEach(
({ plugin }) =>
(plugin.options.filename = "widget.css")
);
The above change is ignored and bundle.31cd2.css
is generated as-usual
My expected behaviour is to generate widget.css
Note: If it’s the usual behaviour please guide me in updating file remotely.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
vite without hash in filename - Stack Overflow
I needed to add output: {entryFileNames: "[name].js",... Still working on getting a single file.
Read more >Adding Hashes to Filenames - SurviveJS
If only main bundle gets updated, only that file needs to be requested again. The same result can be achieved by generating static...
Read more >MiniCssExtractPlugin - webpack
In the example below, we'll use filename to output the generated css into a different directory. webpack.config.js const MiniCssExtractPlugin = require("mini- ...
Read more >Adding Hashes to Filenames | webpack surviveJS
The files have neat hashes now. To prove that it works for styling, you could try altering src/main.css and see what happens to...
Read more >HTML and Static Assets - Vue CLI
... asset links for the JavaScript and CSS files produced during the build. ... hashes in filenames filenameHashing: false, // delete HTML ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@RaghulXander try this:
It should work both in
3.0.0-rc.2
and3.0.0-rc.5
(latest at the time of writting).@RaghulXander I guess this issue is present in mini-css-extract-plugin v0.7.0 and v0.8.0, and will be fixed in next release. You can find out more in https://github.com/webpack-contrib/mini-css-extract-plugin/pull/430