I'm using rollup to bundle the code. For bundling the css I'm using rollup-plugin-postcss. I'm not able to figure out how to add hash to the generated css file. Here is my postCss config:
postcss({
plugins: [autoprefixer()],
sourceMap: !isProd,
extract: `${BUILD_DIR}/styles/index.css`,
modules: true,
minimize: isProd,
use: ['sass'],
extensions: ['.scss'],
inject: false,
autoModules: false,
}),
With this config I'm able to generate index.css in the build directory but I want to generate index-[hash_string].css