Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/explooosion/isomorphic-worker-webpack
Example project showing how to deploy your website build with isomorphic webpack to Cloudflare Workers.
https://github.com/explooosion/isomorphic-worker-webpack
cloudflare isomorphic webpack worker
Last synced: 13 days ago
JSON representation
Example project showing how to deploy your website build with isomorphic webpack to Cloudflare Workers.
- Host: GitHub
- URL: https://github.com/explooosion/isomorphic-worker-webpack
- Owner: explooosion
- License: mit
- Created: 2019-10-26T13:45:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T15:59:52.000Z (over 5 years ago)
- Last Synced: 2024-11-25T00:12:16.481Z (2 months ago)
- Topics: cloudflare, isomorphic, webpack, worker
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Isomorphic Worker Webpack
This project is an isomorphic webpack generated with [webpack-starter](https://github.com/wbkd/webpack-starter), and deployed with [Cloudflare Workers](https://www.cloudflare.com/zh-tw/products/cloudflare-workers/).
## Online Demo
Demo with subdomain : [http://isomorphic-worker-webpack.ta_7382.workers.dev/](http://isomorphic-worker-webpack.ta_7382.workers.dev/)
Demo with `route` by cloudflare dns : [https://worker.robby570.tw/](https://worker.robby570.tw/)
## Installation
Create .env file from .env.example
Install the cli and add your `account_id`, `zone_id`, `route` into `wrangler.toml`.
```sh
yarn global add @cloudflare/wrangler
```## Usage
Install dependencies.
```sh
yarn install
```Start a dev server.
```sh
yarn start
```Build your website.
```sh
yarn build
```## Deploy
Watch worker with wrangler script.
```sh
yarn worker:watch
```Build worker with wrangler script.
```sh
yarn worker:build
```Publish worker with wrangler script.
```sh
yarn worker:publish
```Publish worker for production.
```sh
yarn worker:publish-prod
```## Credit
- [webpack-starter](https://github.com/wbkd/webpack-starter)
- [react-workers-template](https://github.com/cloudflare/react-workers-template)
- [cloudflare templates](https://developers.cloudflare.com/workers/templates/)
## License
Isomorphic Worker Webpack is open source software [licensed as MIT](https://github.com/explooosion/isomorphic-worker-webpack/blob/master/LICENSE).