Nuxt/examples/web-worker
Jon Ege Ronnenberg 1b46a95b06 Webworker (#3480)
* added missing eslint-loader that prevented the example to run and changed freeWorker to terminate a worker and create a new since we can not really free a worker

* proper remove long running worker from longRunningWorkers array when done

* polish web-worker example

set nuxt to 'latest' version

this will change

this will also change
2018-06-26 12:33:51 +02:00
..
assets Webworker (#3480) 2018-06-26 12:33:51 +02:00
components web worker example 2018-03-18 01:45:52 +01:00
layouts web worker example 2018-03-18 01:45:52 +01:00
pages Webworker (#3480) 2018-06-26 12:33:51 +02:00
plugins web worker example 2018-03-18 01:45:52 +01:00
static web worker example 2018-03-18 01:45:52 +01:00
.eslintrc.js web worker example 2018-03-18 01:45:52 +01:00
.gitignore web worker example 2018-03-18 01:45:52 +01:00
nuxt.config.js web worker example 2018-03-18 01:45:52 +01:00
package.json Webworker (#3480) 2018-06-26 12:33:51 +02:00
README.md web worker example 2018-03-18 01:45:52 +01:00

web-worker

Nuxt.js 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.js docs.