Introducing CareRIS - the next generation Radiology Information System
swa start
to run the application locally with the Azure Static Web Apps
emulator at http://localhost:4280
Using Remix configuration for PostCSS
Using PostCSS to run TailwindCSS as a plugin
Configure TailwindCSS
according to Remix documentation (Note: We're using PostCSS not tailwindcss
command line)
Using PostCSS to optimizing CSS with cssnano for production
swa start
This will run the development build of the CSS in watch mode and the app in dev mode running through the Azure emulator. This is the closest to a hosted environment.
swa build
This builds the app and CSS in production mode.
swa deploy
If the repository is not connected to Github Actions, this will allow you to deploy the app to an Azure Static Web App. This will deploy the api function embedded with the SWA, not in a standalone Azure Function.
The app will be deployed into a 'preview' deployment slot. Use swa deploy:prod
to deploy to the 'production' slot.
npm run build:app
This will build the CSS in production mode and build the app according to NODE_ENV.
npm run dev
This will put the CSS into watch mode and start a Remix server on http://localhost:3000. The application does NOT run in an Azure emulator.