Closed ako-v closed 3 years ago
Why do you expect title { font-size: 4.8rem; }
if you have @media (min-width: 576px)
in small
mixin?
sorry, I forgot to include media query. I expect:
title {
@media (min-width: 576px) {
font-size: 4.8rem;
}
}
Can you run PostCSS only with postcss-mixin?
Can you run PostCSS only with postcss-mixin?
I only use postcss-mixin plugin in my webpack config. but I found something, when I build CSS bundled file, there is no problem with it , but in when I try to use it for hot reloading and import it into js file, it has this problem.
ok, I solved the problem by adding sass-loader to rules->use.
module: {
rules: [
{
test: /\.css$/i,
use: [
{
loader: "style-loader"
},
{
loader: "css-loader"
},
{
loader: "sass-loader"
},
{
loader: "postcss-loader",
options: {
postcssOptions: { plugins: postCSSPlugins }
}
}
]
}
]
}
Thank you for your attention.
I have the same issue on v7.0.1 and v7.0.0 I have resolved it with downgrading to v6.2.3
It doesn't need any sass-loader. It gives more error.
Hi. I want to use postcss with mixins and media queries. but I get some problematic css. Here is my CSS:
What I expect to be the output:
what I get as Output:
I use just postcss mixins plugin. List of dependencies: