Post-css not running
See original GitHub issueI currently have
loaders: [
{
test: /\.css$/,
loader: 'style-loader!css-loader!postcss-loader'
}
],
postcss: {
defaults: [
autoprefixer({
browsers: ['last 2 version']
})
]
}
The CSS I am passing to the loader is
/** @define DateTime; use strict */
:root {
--DateTime--understateTime-font-size: 0.75em;
}
.DateTime--understateTime .DateTime-time {
font-size: var(--DateTime--understateTime-font-size); /* 1 */
}
but then what’s being passed back is the same as what is passed the loader any ideas?
Issue Analytics
- State:
- Created 8 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Webpack - Postcss nesting not working used as suggested
CSS variables are defined in the genereated css (colors works). The postcss. config. js is file loaded too.
Read more >Laravel Mix not running PostCSS plug-ins - Laracasts
I installed the PostCSS plug-ins through NPM but they are not running: mix.sass('resources/sass/website.scss', 'public/css', {}, [ purgecss({ enabled: tru.
Read more >How to add Tailwind into a React project in under a minute
Step 1 – How to set up React with CRA template. Install the CRA template first, by running: npx create-react-app cool-demo ...
Read more >postcss-loader - npm
Start using postcss-loader in your project by running `npm i postcss-loader`. There are 10804 other projects in the npm registry using ...
Read more >tailwind-postcss-not-working - CodeSandbox
tailwind-postcss-not-working. 0. Embed Fork Create Sandbox Sign in. Sandbox Info ... postcss.config.js. styles.css. tailwind.config.js. Dependencies.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ai, well, have same issue too. Now it’s with postcss-mixins. Webpack config fragment:
styles.css
And exactly the same I see in output. The most interesting thing here is that autoprefixer works. But mixins are not. Tried both
mixins()
andmixins
inpostcss
array, no effect.I probably missed the optional
notExtractLoader
. So I have no idea.