Giter VIP home page Giter VIP logo

azure-swa-clib-bug-580's Introduction

Vue 3 + Vite + Typescript + Tailwindcss + Fontawesome + Azure functions

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3, Vite, Tailwind css and Fontawesome 6.

Vite

  • @ path is defined as ./src
  • ~ path is defined as ./node_modules
  • § path is defined as ./fontawesome
  • npm run dev : launch development environment and serve it to https://localhost:5173
  • npm run build : compile, optimize and minify to dist/ directory
  • npm run preview : serve dist/ directory to https://localhost:4173

Howto

  • Simply copy this repo with "Use this template" or fork it
  • Clone your new repo
  • issue "npm i" in your local clone
  • decompress _sensitive_datas with PROJECT_ROOT=pwd ./_sensitive_datas/restore_sensitive_datas
  • issue "./launch-serve-azure"
  • browser https://localhost:8788

Tailwind css

  • Tailwind is embedded with my default theme in tailwindcss.config.cjs
  • All classes are availables in development environment (usefull for UI debug with devtools)
  • Built css is parsed by Purgecss for removing all unused classes, take a look to postcss.config.cjs

Fontawesome 6

  • Fontawesome 6 Free is embedded
  • Please use fas, fal, fab… classes rather thant fa-solid, fa-light… (see §/fontawesome/fontawesomeminify.ts)
  • When you build your app, §/fontawesome/fontawesomeminify.ts is run for subsetting roughly all Fontawesome fonts.
  • The main idea is to scan the produced css files, extract all unicode codes and try to subsetting all fa-*.ttf fonts with this unicode list. When done woff/woff2 are derived from the minifyied Truetype font.
  • It is very usefull if you use a few icon and probably divide by 30 your Fontawesome fonts size. (remove the task in package.json if you don't want)

Recommended IDE Setup

License

  • MIT for my work
  • others are under their own license

azure-swa-clib-bug-580's People

Contributors

eltorio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.