public inbox for [email protected]
 help / color / mirror / Atom feed
From: Muhammad Rizki <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: Alviro Iskandar Setiawan <[email protected]>,
	Irvan Malik Azantha <[email protected]>,
	Memet Zx <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Subject: Re: [PATCH v1 0/1] Add tailwind configuration
Date: Wed, 27 Sep 2023 00:18:08 +0700	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

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.

      reply	other threads:[~2023-09-26 17:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 12:00 [PATCH v1 0/1] Add tailwind configuration Muhammad Rizki
2023-09-26 12:00 ` [PATCH v1 1/1] fix: add *.js and *.css for tailwind config Muhammad Rizki
2023-09-26 12:15 ` [PATCH v1 0/1] Add tailwind configuration Ammar Faizi
2023-09-26 15:55   ` Muhammad Rizki
2023-09-26 17:04     ` Ammar Faizi
2023-09-26 17:18       ` Muhammad Rizki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox