-
Notifications
You must be signed in to change notification settings - Fork 194
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
Requesting support for Android Termux #903
Comments
Please provide support for Android devices ARMv7(32-bit) ARMv8(64-bit) (arm64) new version for TailwindCSS (v4.0.4) throw some errors. |
Bumping it up, tailwind v4 doesn't work without lightningcss. And nothing runs. :( Temporary fix is to use proot distro |
I'm confused. Are people really running lightningcss on their phones?? 😲 |
Running tailwind css with vite. If you try out termux, you'll see it's an exactly replica of linux subsystem with limited user permissions. If it's linux, you certainly can code. And do lots of stuff. Though i prefer to use tablets, just use termux to ssh into a powerful phone. Phones these days are pretty powerful. |
Yes, android phones and some android based laptops 💻 |
Imo, lightningcss can support android by targeting You can definitely compile the node add-on yourself like below. You also need to install rust in termux first ( $ git clone https://github.com/parcel-bundler/lightningcss.git
$ cd lightningcss
$ pnpm i In diff --git a/scripts/build.js b/scripts/build.js
index 59807fa..cfba4d0 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -21,7 +21,7 @@ async function build() {
args.push('--target', process.env.RUST_TARGET);
}
- let yarn = spawn('napi', args, {
+ let yarn = spawn('pnpm napi', args, {
stdio: 'inherit',
cwd: __dirname + '/../',
shell: true, Then finally, build the node addon; $ RUSTFLAGS="-C linker=aarch64-linux-android-clang" node scripts/build.js --release && node scripts/build-flow.js Now wait, it will take a long time (mine is 11 minutes, SD680). When done Copy that file to lightningcss directory inside your node_modules, OUTSIDE
|
I'm opening PR for Android support, hope they can considering to merge it. |
both ARM7 ARM64 support? |
Only ARM64 |
We request you to add support for Android Termux, I am using tailwindcss v4.0 and it is not working due to lack of support for Android Termux by lightingcss.
The text was updated successfully, but these errors were encountered: