Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Script Tools

Uriah Xuan edited this page Sep 15, 2022 · 1 revision

FastShop 提供兩個不同的 script,內嵌好兩個不同的 npm 指令。

Tailwindcss

你可以使用 bash tailwindcss.sh 來運行,此時會開始執行 tailwindcss 的熱編譯。

當你在 HTML、JSX 上進行更改並存檔時,熱編譯會將檔案內所有 XML class 進行解析,並且產出 .css 檔案。

關閉使用 Ctrl + C

Babel

你可以使用 bash babel.sh 來運行,此時會開始執行 babel 的熱編譯。

當你在 JSX 上進行更改並存檔時,熱編譯會將當前的 JSX 檔案編譯成 JS 檔案,並將 JS 檔案放在 static 資料夾。

Clone this wiki locally