Nuxt/examples/web-worker
2023-03-16 06:24:27 -07:00
..
assets
components refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00
layouts
pages refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00
plugins
static
.eslintrc.js chore: update dependencies (#10510) 2022-06-24 00:58:52 +02:00
.gitignore
nuxt.config.js refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00
package.json chore(examples): use 2.x version of nuxt instead of latest (#19737) 2023-03-16 06:24:27 -07:00
README.md refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00

Nuxt with web-workers using Worker-loader

Nuxt project

In nuxt 1.4 and below you have to create a production build to use web workers.

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
# nuxt 1.4 and below does not support web workers in dev mode
$ npm run dev

# build for production and launch server
# in nuxt 1.4 and below you have to create a production build to use web workers
$ npm run build
$ npm start

# generate static project
$ npm run generate

For detailed explanation on how things work, checkout the Nuxt docs.