webpack-contrib / mini-css-extract-plugin

Lightweight CSS extraction plugin
MIT License
4.65k stars 389 forks source link

Use output.cssFilename as default filename #1041

Open ahabhgk opened 1 year ago

ahabhgk commented 1 year ago

Feature Proposal

Use output.cssFilename as default filename, I know cssFilename is used for experiments.css, but it would be great if it can also used for this plugin

Feature Use Case

module.exports = {
  output: {
    cssFilename: "[name]-[contenthash].css",
  },
  plugins: [new MiniCssExtractPlugin()]
}

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

alexander-akait commented 7 months ago

We can do it, but I am afraid it will be breaking change right now