Preact v10.0 with hooks demo
Initial idea Dominic St-Pierre
I've tried to keep things as simple as possible.
[16-March-2021]
- Webpack and dependencies were upgraded to version 5
- Typescript 4
- LESS 4
- TSLint replaced with ESLint
- Syntax aligned with ESLint rules
- Docker and docker-compose build modes were added
- Clone repository.
- Run 'npm install' in the local copy (I hope you have NodeJS and NPM installed =)
- Use one of:
npm run build
for production buildnpm run dev
for development build (no minification)npm run start
for live server onhttp://localhost:3030/
Also, Windows shortcuts are here. See *.bat
files.
You can just run docker_build.cmd
script.
Before run please remove dist
folder, if any.
In root folder run docker-compose up
to build the files. Result will be
placed into dist
folder. Stop the container afterwards.
In root folder run docker-compose -f docker-compose.watch.yml up
to build the files. Result will be placed into dist
folder and Webpack will start watching.
node_modules
and dist
folders will be mapped.
In root folder run docker-compose -f docker-compose.start.yml up
to build the files. Result will be placed into dist
folder and application will start watching. Webserver will be available on URL localhost:3030
.
node_modules
and dist
folders will be mapped.