Replies: 3 comments
-
i am sorry. to be honest it stopped working either way :) maybe you can point at where to look at? my webpack config looks like this: const { resolve } = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
configuration: {
mode: 'development',
module: {
rules: [
{
test: /\.css$/,
include: resolve(__dirname, 'src'),
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
importLoaders: 1,
},
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [require('@tailwindcss/postcss')],
},
},
},
],
},
{
test: /\.css$/,
include: /node_modules/,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
},
],
},
},
}; |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey! Really hard to tell from this information alone unfortunately. I would still recommend to try to create a minimal reproduction repo and attach it so we can take a look what's going on. |
Beta Was this translation helpful? Give feedback.
0 replies
-
also these are my logs from tailwind postcss plugin. looks like this is called twice, can be this an issue?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
4.0.12
What build tool (or framework if it abstracts the build tool) are you using?
webpack ,react, post css loader
What version of Node.js are you using?
lts
What browser are you using?
Arc
What operating system are you using?
macOS
Reproduction URL
I am sorry it is hard to create reproduction, but maybe you would know what issue right from description
Describe your issue
Basically the issue that main css is not being update when i add tailwind classes to classNames in dev watch mode if i import tailwind like this (i want to remove preflight but i keep it here for simplicity):
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "tailwindcss/utilities.css" layer(utilities);
but everything works, if import like:
@import "tailwindcss";
Beta Was this translation helpful? Give feedback.
All reactions