https://github.com/tedbyron/brightsign-webpack-preact
Webpack + Preact + TypeScript + Tailwind
https://github.com/tedbyron/brightsign-webpack-preact
brightsign preact tailwindcss typescript webpack
Last synced: 3 months ago
JSON representation
Webpack + Preact + TypeScript + Tailwind
- Host: GitHub
- URL: https://github.com/tedbyron/brightsign-webpack-preact
- Owner: tedbyron
- Created: 2022-01-26T16:21:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T18:55:02.000Z (over 3 years ago)
- Last Synced: 2025-08-28T09:19:00.538Z (10 months ago)
- Topics: brightsign, preact, tailwindcss, typescript, webpack
- Language: JavaScript
- Homepage:
- Size: 1.71 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
brightsign-webpack-preact
Webpack + Preact + Typescript + Tailwind
## Install
Run `yarn` in the repository root.
## Development
- See [`package.json`](./package.json) scripts. TypeScript's `tsc` can be run
with `yarn tsc`.
- When running the local development server, append the output HTML file name
with its extension to the URL.
### Webpack
- Both JavaScript and Typescript modules will work and are interoperable.
- [`swc`](https://swc.rs/docs/configuration/compilation) is used to transpile
JS/TS, see `ecmaVersion` in the webpack config.
- BrightSign modules (`@brightsign/...` imports) are automatically included in
webpack externals. If more externals are needed, see
[combining syntaxes](https://webpack.js.org/configuration/externals/#combining-syntaxes).
- When adding path aliases, they must be added to `tsconfig.json`, the webpack
`swcOptionsNode`, and both webpack configs' `resolve.alias`.
### TypeScript
- Add a `@ts-expect-error` comment above BrightSign module imports (see
[`node/api.ts`](./node/api.ts)).