microsoft / ajaxmin

The Microsoft Ajax Minifier enables you to improve the performance of your Ajax applications by reducing the size of your Cascading Style Sheet and JavaScript files.
https://www.nuget.org/packages/AjaxMin
MIT License
32 stars 21 forks source link

Support Modern CSS statements #16

Open pvkekem opened 2 years ago

pvkekem commented 2 years ago

Such as

:root {
    --blue: 'blue';
    --five: 5px;
    --width: 100px;
    --half-width: calc(var(--width) / 2);
    --half-width-with-indent: calc(var(--half-width) + 16px);
    --half-width-with-indent: calc(10% + var(--half-width) + 16px);
}
.margin {
    margin: calc(2 * var(--five));
}
:is(.container) :is(.bold) {
    font-weight: bold;
}
:is(.container) :where(.bold) {
    grid-template-areas: 'myArea myArea myArea myArea myArea';
}
div :is(.test),
div:is(.test) {
    color: var(--blue);
}
ghost commented 2 years ago

CLA assistant check
All CLA requirements met.

Taritsyn commented 2 years ago

@pvkekem As far as I know, this project is no longer maintained. Even in the README.md file there is a notification:

Notice: This project is no longer maintained.

If I were you, I would start using an official successor of the Microsoft Ajax Minifier - NUglify

pvkekem commented 2 years ago

@pvkekem As far as I know, this project is no longer maintained. Even in the README.md file there is a notification:

Notice: This project is no longer maintained.

If I were you, I would start using an official successor of the Microsoft Ajax Minifier - NUglify

OK - will check it out. I'm using it combined with RequestReduce - any chance there is a successor of that as well?

Taritsyn commented 2 years ago

I'm using it combined with RequestReduce - any chance there is a successor of that as well?

I doubt it, because the RequestReduce has not been updated for a very long time.

trullock commented 2 years ago

👋 Nuglify maintainer here, yes, use that

dgasaway commented 1 year ago

@pvkekem Since you seem to have made a successful change/PR with the current code, I'd like to ask a question, if you don't mind. I cloned master, opened the solution, and tried to build, but got build errors in the JSUnitTest project. For example Error 29 The type or namespace name 'JSError' could not be found (are you missing a using directive or an assembly reference?) D:\dev\AjaxMin\JSUnitTest\Common\TestHelper.cs 679 41 JSUnitTest. Is there something special you did to get a clean build?