From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1695748692; bh=A8KZAaa4oWCDGuryIRF6B+qUhx8UQ+k1mUP21tj5Xvk=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=oK/yTiIaV8LqEzpmrX03uK3lM6DejYXboaJDo+wdtkhO45ScLDy3aHQdnzwTPKUIu aaQ1GyD3xRUUki1DLTR0tLwKeeUZrpZmTDyXoSaKLHfGylNrkIzccmmBxJM5ia4ETC vm+rsWKJlGxRQTuChWWtTJNMQ2Bb0A021OJ6qlw9D7AGTtEiK88gDApE553op5MciS Urxp94cnNIuBLlmWpIWDa4XchmPtL7wH+OUc0wC25E0GFI2LHaFmQwi+dOTPe78GKy n101ACugk7o5dFmk1ibqwbFpF43DizK3Pm2nyCA2EVkOywo+563KbfSxsZdSz5Z4YG pcTccU2RwNUmg== Received: from [192.168.1.5] (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 987B023C1C8; Wed, 27 Sep 2023 00:18:11 +0700 (WIB) Message-ID: <12dcdb11-b98d-8657-b522-a19f38cc0f8d@gnuweeb.org> Date: Wed, 27 Sep 2023 00:18:08 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v1 0/1] Add tailwind configuration To: Ammar Faizi Cc: Alviro Iskandar Setiawan , Irvan Malik Azantha , Memet Zx , GNU/Weeb Mailing List References: <20230926120027.516-1-kiizuha@gnuweeb.org> <71837805-a4b6-9a47-4b8d-b49ae199355e@gnuweeb.org> Content-Language: en-US From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 27/09/2023 00.04, Ammar Faizi wrote: > On Tue, Sep 26, 2023 at 10:55:38PM +0700, Muhammad Rizki wrote: >> That's weird, I tried the similar commands on Windows: >> - npm run build:css >> - Get-Content .\index.html | ForEach-Object { $_ -replace 'dist', '.' } | >> Set-Content .\dist\index.html >> - robocopy static dist\static >> - npm run build:minify >> >> Then open the dist index.html file in the browser and it's working properly. >> >> https://i.ibb.co/GdqLj9y/image.png > > The prod server will never run Windows. I can't convert those commands > to Linux and don't want to figure out the equivalent commands on Linux. > Specifically the "Get-Content" and "robocopy". > It's actually like npm run build but for Windows only since Windows doesn't have `cp` and `cat` command: - `cp` in Windows is `robocopy` or `xcopy` - `cat` in Windows is `Get-Content` (win pwshell) The point is, I do exactly like `npm run build` then open it the dist `index.html` file to the browser on incognito mode and it is working, we should ask Irvan to try it too.