GitHub - Somepub/minimal-web_template
source link: https://github.com/Somepub/minimal-web_template
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
minimal-web_boilerplate
const { } = BOILERPLATE(ESBUILD + ESTRALLA + CADDY + SCSS + PREACT)
How to run?
- Install Caddy [https://caddyserver.com/docs/install]
- Install npm packages (npm i || yarn)
- yarn start
What is this?
This is a web_development environment template. (BOILERPLATE) Usually, people use Webpack, Rollup, or Parcel to develop with WEB. I'm not a big fan of those, and there is always an alternative.
Dependencies installed
Dependencies used for
- estrella: Used as a bundler, that can watch source files and make changes to outDir.
- @es-pack/esbuild-sass-plugin: A esbuild plugin, that compiles sccs files to css
- livereload: Livereload code
- Preact: React alternative (Much smaller)
- Caddy: DevServer
DevServer
This template uses Caddy as a DevServer
To write devServer config and proxies:: edit - Caddyfile
- Bundler is x10 faster than Webpack, Rollup, or Parcel (Any bundler made with JS)
- Bundler uses minimal dependencies
- Easier to write bundle conf
- Caddy is more extensible and performant than webpack DevServer or rollup plugin serve
- Preact has a smaller lib size than React
- Bundler is fairly new, which means there could be issues that you can't find the right answer in GitHub or StackOverflow
- Bundler doesn't have a wide range of plugins (Like systemJS, which may be coming soon?)
- Minimal docs @ esbuild && estrella
- Caddy setup and install is not "out of the box"
- Preact doesn't support everything
What does "build.js" do?
Build.js does the following:
- Bundle index.tsx file with esbuild
- Watch files with estrella
- Clear and make dist directory
- Execute extra logic for css and scss watch
- Generate HTML
Known Issues
Recommend
-
38
README.md vue-admin-template English | 简体中文 A m...
-
59
hyperlit hyperlit lets you declare your hyperapp views in a html-like fashion, similar to JSX. Unlike JSX you don't need a build-step and babel config to do it...
-
10
Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says “yeah, I love writing them”. And that’s why almost everyone is putting low attention while writing them. I won’t try to make you a Bash expert (since...
-
12
-
9
Exploring a minimal Web API with ASP.NET Core 6 Sponsored By I write about
-
28
react-native-ecommerce A minimal React Native e-commerce app template. This project provides a minimal starter project structure for your next awesome e-commerce app. Screens: products list, details, and shopping c...
-
3
react-native-ecommerce A minimal React Native e-commerce app template. This project provides a minimal starter project structure for your next awesome e-commerce app. Screens: products list, details, and shopp...
-
5
Agreper - minimal, no-JS forum software For security issues, please send a mail to [email protected]
-
6
Smallest Minimal Web API in .NET?Here’s a fun puzzle my colleague Craig Bossie asked me some time ago.What is the smallest C# .NET 6/7 Web API application tha...
-
9
July 04, 2023 ~11 min read The minimal API AOT compilation template Exploring the .NET 8 preview - Pa...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK