Comments (4)
Mmmm.. spent more time on this, and it seems this happens only on an @apply
error in an @import
ed CSS file.
If I have a typo in my main css file, rebuild after error works.
I'm using postcss-easy-import
which is basically postcss-import
with globs, the problem is probably there. I'll report back.
from tailwindcss.
Couldn't make it work with postcss-import. I've resolved by converting all my stylesheets to SASS and using it to concatenate imports, which are then processed by postcss and tailwind.
Here's my webpack rules:
// Preloader to support globbed @import on SASS
{
test: /\.s?css$/,
enforce: "pre",
loader: "import-glob-loader"
},
{
test: /\.s?css$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: ["css-loader", "postcss-loader", "sass-loader"]
})
}
And my main CSS:
@tailwind preflight;
@import "./components/*";
@tailwind utilities;
@import "./utilities";
from tailwindcss.
Pinging #53 since I originally got the idea of using postcss-import from there.
from tailwindcss.
I have the same issue that webpack sopts watching... It's not a dealbreaker but kind of annoying every time I need to restart the process.
from tailwindcss.
Related Issues (20)
- Whatever
- [v4] Pseudo selector scale doesn't work on Firefox HOT 3
- Cannot read properties of null (reading '__isOptionsFunction') HOT 2
- [email protected] build time significantly exceeds previous versions for monorepo
- Tailwind Standalone Throwing Caniuse Browserlist Error When Running Without Tailwind CLI HOT 2
- PostCSS warning for custom utility used with before:/after: HOT 1
- [v4] "ring" doesn't show in Firefox HOT 1
- `supports` variant compiles function syntax incorrectly HOT 5
- Classes in an object aren't detected HOT 1
- v4: Bug with how the parser handles nested `quote_stack` and `bracket_stack` characters when in a string context HOT 2
- ERROR - Module not found - Can't resolve './${previewSrc}' HOT 2
- Giving error while installing tailwindcss
- tailwind css installed but not working in my webpack+ umi + react project
- TailwindCSS is using stderr to log the messages "Rebuilding..." and "Done in [x]ms"
- [v4] Chrome ~v103 chokes on comma in .bg-gradient-* Utility HOT 1
- PostCSS plugin not processing changes outside base directory HOT 3
- Tailwind does not delete unused css
- Cannot transition between outer and inner shadows
- Border is being overwritten despite appearing after the original border class
- tailwind-cli casually emits to `stderr` HOT 2
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 tailwindcss.