Replies: 12 comments
-
Same here. Building also work if the glob array is empty. To be more precise, the problem is causing the css files to be passed through, keeping all the |
Beta Was this translation helpful? Give feedback.
-
Interestingly, using raw content work as expected: module.exports = {
purge: {
enabled: true,
content: [
{
raw: '<html><body><div class="mx-auto"></div></body></html>',
extension: 'html'
},
],
}
} |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you for your bug report! Can you provide more information on this case?
I tried reproducing it with the information you mentioned, but I don't have any issues. |
Beta Was this translation helpful? Give feedback.
-
Sure, but as my skills allow.
Unfortunately, it's still beyond my skills.
$ npx tailwindcss build ./tailwind.css -o ./tailwind.lit.css -c ./tailwind.config.js
tailwindcss 2.0.2
🚀 Building: tailwind.css
✅ Finished in 21 s
📦 Size: 9.02KB
💾 Saved to tailwind.lit.css Note that the size of the file is very small to be the correct one!
Yes, I do verify that they do exist.
It's 15.4.0.
Run to play lottery, it's your super lucky day! It seems that for me and @LeLocTai, it's an unlucky day! The stars and planets are not aligned in a correct manner! -:) |
Beta Was this translation helpful? Give feedback.
-
Yeah, I can't reproduce it, I need more information... A repository that showcases the error would be best. While I wait for that.
|
Beta Was this translation helpful? Give feedback.
-
tailwind.css @tailwind base;
@tailwind components;
@tailwind utilities; tailwind.lit.css *,
*::before,
*::after {
box-sizing: border-box;
}
:root {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
*,
::before,
::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: #e2e8f0; /* 2 */
}
* {
--tw-shadow: 0 0 #0000;
}
* {
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59, 130, 246, 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
}
@-webkit-keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@-webkit-keyframes pulse {
50% {
opacity: .5;
}
}
@keyframes pulse {
50% {
opacity: .5;
}
}
@-webkit-keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
@keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
@media (min-width: 640px) {
}
@media (min-width: 768px) {
}
@media (min-width: 1024px) {
}
@media (min-width: 1280px) {
}
@media (min-width: 1536px) {
} Note: Comments have been removed. I hope @LeLocTai to provide a reproduction repository. |
Beta Was this translation helpful? Give feedback.
-
@GHNewbiee could you also share an .html file that is using any of the tailwind classes? Is direct postcss giving the same result? What's the |
Beta Was this translation helpful? Give feedback.
-
@ahtik I use tailwind classes in components (LitElement) (js) files after JS-ifying the produced css file. For the time being, there is not an html file. Thanks for the shorthand version. Both last two |
Beta Was this translation helpful? Give feedback.
-
Note: In |
Beta Was this translation helpful? Give feedback.
-
package.json {
...
"devDependencies": {
"@reboost/plugin-litcss": "^0.18.2",
"@reboost/plugin-postcss": "^0.18.2",
"postcss-preset-env": "6.7.0",
"reboost": "^0.18.2",
"tailwindcss": "^2.0.2"
},
"dependencies": {
"lit-element": "^2.4.0",
"lit-html": "^1.3.0"
} |
Beta Was this translation helpful? Give feedback.
-
Ok so for me the problem was with gulp/postcss. I was building the compilation stream based on some criterias: if(this) stream.pipe(that) This has worked with many plugins for years. For postcss however, it only worked if written like this: if(this) stream = stream.pipe(that) I'm not sure if I been doing things wrong all this time and just got lucky, or postcss/gulp-postcss incorrectly modify the gulp stream somehow. Anyway, my problem is not specific to tailwind and likely not what OP is facing. |
Beta Was this translation helpful? Give feedback.
-
This is definitely a configuration issue rather than a bug so moving this to discussions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem:
When
purge.enabled
is set totrue
thecss
file build fails.tailwindcss: 2.0.1
Reproduction:
A very simple config file as follows is enough to cause build failure.
tailwind.config.js
but the following ones work fine:
and
Beta Was this translation helpful? Give feedback.
All reactions