Install with yarn:
yarn
Run development mode:
# yarn dev <workspace>
yarn dev website
Build single workspace:
# yarn build <workspace>
yarn build website
Create workspaces/<workspace_name>/index.tsx
and run:
yarn dev <workspace_name>
Create workspaces/<workspace_name>/webpack.config.js
:
module.exports = function(config) {
// Modify config and return it
return config
}
To setup service worker, during build set PUBLIC_PATH
to website URL.
PUBLIC_PATH=https://website.example yarn build website
To setup error tracking, set SENTRY_URL
environment variable to your sentry project url.
SENTRY_URL=https://XXXXXXXXX@sentry.io/XXXXXXX