Comparing version 2.5.8 to 2.5.9
@@ -270,3 +270,3 @@ #!/usr/bin/env node | ||
// eslint-disable-next-line quotes | ||
return "windicss 2.5.8"; // replace by rollup | ||
return "windicss 2.5.9"; // replace by rollup | ||
} | ||
@@ -273,0 +273,0 @@ function generateTemplate(folder, outputPath) { |
{ | ||
"name": "windicss", | ||
"version": "2.5.8", | ||
"version": "2.5.9", | ||
"description": "Next generation tailwindcss compiler.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,6 @@ <h1 align="center"> | ||
<p align="center"> | ||
If you are already familiar with Tailwind CSS, think about Windi CSS as an <b>on-demanded</b> alternative to Tailwind, which provides faster load times, <b>fully compatible with Tailwind v2.0</b> and with a bunch of additional cool features. | ||
</p> | ||
[windi css]: https://windicss.org | ||
@@ -29,3 +33,3 @@ [website]: https://windicss.org | ||
> When my project became larger and there were about dozens of components, the initial compilation time reached 3s, and hot updates took more than 1s. @voorjar | ||
> When my project became larger and there were about dozens of components, the initial compilation time reached 3s, and hot updates took more than 1s with Tailwind CSS. - [@voorjaar](https://github.com/voorjaar) | ||
@@ -38,2 +42,4 @@ By scanning your HTML and CSS and generating utilities on demand, [Windi CSS] is able to provide [faster load times][video comparison] and a speedy HMR in development, and does not require purging in production. | ||
Windi CSS provides first-class integrations for your favorite tools, select yours and get started. | ||
| Frameworks | Package | Version | | ||
@@ -40,0 +46,0 @@ | :-- | :-- | :-- | |
@@ -43,1 +43,10 @@ import type { NestObject } from '../interfaces'; | ||
}[]; | ||
/** | ||
* Increase string a value with unit | ||
* | ||
* @example '2px' + 1 = '3px' | ||
* @example '15em' + (-2) = '13em' | ||
*/ | ||
export declare function increaseWithUnit(target: number, delta: number): number; | ||
export declare function increaseWithUnit(target: string, delta: number): string; | ||
export declare function increaseWithUnit(target: string | number, delta: number): string | number; |
@@ -1205,5 +1205,4 @@ 'use strict'; | ||
var regexRemoveComments = [ | ||
// use constructor here because Safari does not support lookahead in regex literal | ||
new RegExp('[\\s\\t]*\\/\\*.+?\\*\\/', 'gs'), | ||
new RegExp('[\\s\\t]*(?:[^:])\\/\\/.*$', 'gm'), | ||
new RegExp('[\\s\\t]*:?\\/\\/.*$', 'gm'), | ||
]; | ||
@@ -1224,3 +1223,8 @@ var CSSParser = /** @class */ (function () { | ||
return css; | ||
regexRemoveComments.forEach(function (regex) { return css = css === null || css === void 0 ? void 0 : css.replace(regex, ''); }); | ||
css = css.replace(regexRemoveComments[0], ''); | ||
css = css.replace(regexRemoveComments[1], function (match) { | ||
if (match.replace(/[\s\t]*/, '').startsWith('://')) | ||
return match; | ||
return ''; | ||
}); | ||
return css; | ||
@@ -1227,0 +1231,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1462493
40028
82