menreiki
SSR solution with react/react-router
Last updated 9 months ago by bloody-ux .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install menreiki 
SYNC missed versions from official npm registry.

安装

npm install -g menreiki

初始化一个oc项目

menreiki init

开发

npm start

注意不要直接运行menreiki dev,因为这样子会使用全局的menreiki安装包,而非本地的

构建发布资源

npm run build

构建后会产生assets,以及index.vm, 可以将index.vm的内容放入到SOFA,

关于按需加载资源是的publicPath如何设置的问题

add more docs

default menreiki.config.js


// commonjs module

// render react的element, 必须是一个id选择器
exports.elementId = '#app';

// 使用什么router,默认是browserRouter
exports.router = 'browserRouter';

// dev server host, default: localhost
exports.host = 'localhost'

exports.plugins = [
  ['menreiki-plugin-html', {
    // spm: {
    //   spmA: '<apos>',
    //   spmB: '<bpos>'
    // },
    // clue: '<pid>'
  }],
  'menreiki-plugin-proxy',
  // ['menreiki-plugin-webpack', {
  //   webpack: function(webpackConfig) {

  //   },
  //   babel: function(babelConfig) {

  //   }
  // }],
];

Current Tags

  • 1.0.0-dev.1                                ...           latest (9 months ago)

72 Versions

  • 1.0.0-dev.1                                ...           9 months ago
  • 0.0.71                                ...           a year ago
  • 0.0.70                                ...           a year ago
  • 0.0.69                                ...           a year ago
  • 0.0.68                                ...           a year ago
  • 0.0.67                                ...           a year ago
  • 0.0.66                                ...           a year ago
  • 0.0.65                                ...           a year ago
  • 0.0.64                                ...           a year ago
  • 0.0.63                                ...           a year ago
  • 0.0.62                                ...           a year ago
  • 0.0.61                                ...           a year ago
  • 0.0.60                                ...           a year ago
  • 0.0.59                                ...           a year ago
  • 0.0.58                                ...           a year ago
  • 0.0.57                                ...           a year ago
  • 0.0.56                                ...           a year ago
  • 0.0.55                                ...           a year ago
  • 0.0.54                                ...           a year ago
  • 0.0.53                                ...           a year ago
  • 0.0.52                                ...           a year ago
  • 0.0.51                                ...           a year ago
  • 0.0.50                                ...           a year ago
  • 0.0.49                                ...           a year ago
  • 0.0.48                                ...           a year ago
  • 0.0.47                                ...           a year ago
  • 0.0.46                                ...           a year ago
  • 0.0.45                                ...           a year ago
  • 0.0.44                                ...           a year ago
  • 0.0.43                                ...           a year ago
  • 0.0.42                                ...           a year ago
  • 0.0.41                                ...           a year ago
  • 0.0.40                                ...           a year ago
  • 0.0.39                                ...           a year ago
  • 0.0.38                                ...           a year ago
  • 0.0.37                                ...           a year ago
  • 0.0.36                                ...           a year ago
  • 0.0.35                                ...           a year ago
  • 0.0.34                                ...           a year ago
  • 0.0.33                                ...           a year ago
  • 0.0.32                                ...           a year ago
  • 0.0.31                                ...           a year ago
  • 0.0.30                                ...           a year ago
  • 0.0.29                                ...           a year ago
  • 0.0.28                                ...           a year ago
  • 0.0.27                                ...           a year ago
  • 0.0.26                                ...           a year ago
  • 0.0.25                                ...           a year ago
  • 0.0.24                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 73
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2018 © taobao.org |