1.0.0 • Published 5 years ago

@frosti/server v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Frosti Server

Express powered Node server powering Frosti server-side-rendering fro apps created with frosti cli.

Usage

You should rarely need to interact with this directly, it will be automaticalyl imported and configured for you when you use the frosti cli to create a new app. However if you would like to use it from scratch, it's pretty straight-forward:

React

process.env.ENABLE_SW = process.env.NODE_ENV === 'production';

server({
  App: Server,
  library: 'react',
  modules: {
    Helmet,
    React,
    ReactDOMServer
  },
  root: path.join(__dirname, '../'),
  template: 'src/template.html'
});

Preact

Coming soon.

Angular

Coming soon.

Vue

Coming soon.

Vanilla JS

Coming soon.