Comments (5)
Hi Patric!
As I understood your problem correctly, you use [name].css?[contenthash]
as a template for the file name. I bet query params are useless here because file name can’t contain query param, right? You will get just app.css
(for example) on your disk in any case.
At the same time, webpack keeps generated file name as is internally and it doesn’t match /\.css$/
. That’s why your pipeline is not working as expected.
My advice is not to use query param.
Please, let me know if I miss something and you need such template. It would be nice if you can provide webpack.config.js to reproduce your case.
from postcss-pipeline-webpack-plugin.
Hi @mistakster - True, the filename is without the contenthash. But the hash is injected into the index.html by HtmlWebpackPlugin
. This way I'm able to use the same file names for each build, while still having a custom source link. This was initially due the fact, that we use the build for different environments. But since I had the same problem with an other package I probably will have to switch to a solution without query hash.
You can find an example configuration here.
from postcss-pipeline-webpack-plugin.
from postcss-pipeline-webpack-plugin.
I’ve just published a new version (3.1.0) with relevant patch. Hope it will work for you whether you decided to use query params or not.
Thank you for your help.
from postcss-pipeline-webpack-plugin.
Made a test run and it looks like it's working now. THX!
from postcss-pipeline-webpack-plugin.
Related Issues (20)
- An in-range update of postcss is breaking the build 🚨 HOT 1
- 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
- dash '-' instead of dot '.' HOT 2
- 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.