9

I am wondering whether anyone can point me to resources or examples on how to set up parcel for vue SSR (Server Side Rendering).

Or is Vue SSR not possible with parcel?

LongHike
  • 2,426
  • 1
  • 23
  • 42
  • Gatsby.js is SSR React + Webpack. Not what you're looking for obviously, but it's setup and is fantastic. – serraosays Oct 29 '18 at 17:25
  • 1
    I would look to see if Parcel does any kind of Server Side Rendering. They I would see if that can apply to Vue. – James A Mohler Nov 08 '18 at 21:30
  • Maybe you can try to use Nuxt.js with your project ? Under this link you can read a lot about this problem maybe you will find sth usefull: https://github.com/parcel-bundler/parcel/issues/3464 ```"If you meant that Parcel should try and support it by itself(e.g via @parcel/react-ssr), i don't really think it's Parcel's job to support them."``` – Krzysztof Kaczyński Oct 07 '19 at 23:25

1 Answers1

-2

Should be as simple as installing the various libraries needed:

# Yarn
$ yarn add parcel-bundler parcel-plugin-vue @vue/component-compiler-utils babel-preset-env -D

# NPM
$ npm install parcel-bundler parcel-plugin-vue @vue/component-compiler-utils babel-preset-env --save-dev

Now you can run npx parcel and you'll be ready to go.

For more detail see: https://alligator.io/vuejs/vue-parceljs/

chris stamper
  • 12,726
  • 1
  • 21
  • 46
  • I've [tried](https://github.com/chriscalo/vue-ssr/tree/alligator.io-tutorial) the linked tutorial and it doesn't address SSR. – Chris Calo Oct 10 '19 at 23:33
  • @cdstamper Maybe you can help me. Look at this : https://stackoverflow.com/questions/59524595/how-can-i-implement-server-side-rendering-ssr-on-the-vuetify-project-that-is-1 – Success Man Jan 05 '20 at 02:36