This is the boilerplate page for an Antwar based site.
antwar.config.js
to add routeswebpack.config.js
to modify webpack behaviorWhenever you want to use a stateful (Reason)React component, you need to use an Interactive component to mark them as separate build units. Antwar will detect given components, build separate bundles and hooks them up via script injection.
This is a JS based Counter:
This is a Reason based Counter:
Use npm run build
or npm run clean-build
to build your project. For easy
testing on your local machine, you can do:
cd build/
python -m SimpleHTTPServer 8000
Now you can access your built website on localhost:8000
. This is the
actual build you also deploy on your hosting server.