Comments (2)
closed by #58
from postcss-pipeline-webpack-plugin.
Hi SetiZ!
I’ve just published version 5.1.0 which let you configure destination filenames as you wish.
I added transformName
option. You can provide a function which returns the new name for each file. For example
plugins: [
new MiniCssExtractPlugin({ filename: 'styles-[hash:8].css' }),
new PostCssPipelineWebpackPlugin({
processor: postcss([criticalSplit()]),
transformName: name => 'critical-' + name
})
]
And you get styles-12345678.css
and critical-styles-12345678.css
in this case.
Actually, you can do a complex find/replace operation with RegExp inside the function.
By the way, prefix
and suffix
options remain the same if transformName
is not defined.
Hope this helps you. And thank you for your PR.
Let me know if you have any questions.
Cheers!
from postcss-pipeline-webpack-plugin.
Related Issues (20)
- An in-range update of postcss is breaking the build 🚨 HOT 1
- Not compatible with query hash HOT 5
- An in-range update of mocha is breaking the build 🚨 HOT 1
- An in-range update of webpack is breaking the build 🚨 HOT 3
- Version 10 of node.js has been released
- How change full name of ctitical part? HOT 3
- Why critical css doesn't remove from styles? HOT 8
- An in-range update of webpack is breaking the build 🚨 HOT 10
- An in-range update of webpack is breaking the build 🚨 HOT 1
- An in-range update of postcss is breaking the build 🚨 HOT 5
- Breaking change on 4.1.1 from 4.1.0 HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 5
- An in-range update of webpack is breaking the build 🚨 HOT 6
- An in-range update of css-loader is breaking the build 🚨 HOT 7
- An in-range update of webpack is breaking the build 🚨 HOT 7
- An in-range update of postcss is breaking the build 🚨 HOT 7
- An in-range update of mini-css-extract-plugin is breaking the build 🚨 HOT 2
- Assets don't appear in manifest HOT 9
- Thanks for great replacement for optimize-css-assets-webpack-plugin
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 postcss-pipeline-webpack-plugin.