@frosti/server

1.0.0 • Public • Published

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.

/@frosti/server/

    Package Sidebar

    Install

    npm i @frosti/server

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    19.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • jesseweed