-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build script: fix CSS extract with options.compress
#4833
Conversation
Signed-off-by: arcanist <arcanistzed@gmail.com>
Waiting for ajaxorg/ace/pull/4833 to be merged
Signed-off-by: arcanist <arcanistzed@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #4833 +/- ##
=======================================
Coverage 69.94% 69.94%
=======================================
Files 559 559
Lines 58338 58338
Branches 11235 11235
=======================================
Hits 40803 40803
Misses 17535 17535
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
This change has broken the generation of This particularly affects deployments with Here's a diff of the css file after this change: https://gist.github.com/anthonyryan1/11620290f2d82d4ff2b91948bebfb4d6 I don't think it was the intention to delete all the CSS from all the builds. This has caused display bugs in every release since 1.8.0. |
The problem seems to stem from the fact that extractCSS uses a pretty simple set of regexes to find the CSS hiding in the JavaScript files. These worked perfectly on the raw source code, but once we minify it, the regexes no longer work and fail to extract the CSS properly. We either need to continue running extractCSS on non-minified javascript, or we need a better regex that can identify CSS in the already minified javascript. |
Reverted the change and released new fixed 1.9.5 version |
That's unfortunate because now |
@arcanistzed are you using ace-builds or building from ace repo? |
I was building directly from the ace repo before https://github.com/arcanistzed/acelib/blob/330c8e01b797aaa55cfc1c213351a89e3c8b273c/.github/workflows/ace.yml |
if you need to unminified code you can install new |
#4899 fixes the issue with compressed mode |
Description of changes:
During the build script, extract the CSS to the correct directory when
options.compress
is set to true. Otherwise,readdirSync
on the next line will throw an error because the directory doesn't exist.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.