Fluffy is a server side renderer middleware for Vue.js, which is intended to be used with Nginx to proxy requests.
requires a
node
version >= 9.11.2 and annpm
version >= 5.x.x Fluffy uses Koa as middleware Fluffy provides ahelp
command to display all possible arguments
🙀 vue-preboot is using Fluffy for development and delivery. Check it out.
# Installs Fluffy to your Vue
npm i @andersnormal/fluffy
# Start fluffy
./node_modules/.bin/fluffy --port 3000 --dev --webpack config/configs --bundle public/vue-ssr-server-bundle.json --manifest public/vue-ssr-client-manifest.json --template public/index.html
most command line arguments have a reflection in environment variables, which allows it to be easily tested and developed in many environments
Displays all the available arguments
The socket to listen on for rendering requests.
Enable the koa-webpack middleware for development.
Path to the Webpack config for development. This should expose an object with
{
ssrConfig: YOUR_CONFIG,
devConfig: YOUR_CONFIG
}
The port to listen on for rendering requests.
Path to the server bundle.
Path to the client manifest
Path to the render template.
The Unix socket file system mode.
Displays the current version of 🐲 Fluffy
all commands can be seen via
npm run help
# Clone the repository
git clone https://github.com/andersnormal/fluffy
# Start the local dev server
docker-compose up
Have fun!