Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Levan-Du/anu-cli

Repository files navigation

anujs是react的迷你版,由去哪儿前端大神司徒正美推出,完全兼容react语法,并兼容低版本ie浏览器。详见https://github.com/RubyLouvre/anu

这个是anujs的手脚架,可快速创建anujs项目,以下是用法:

  1. npm i -g anu-cli 安装命令行工具

  2. anu project_name --ie 使用anu命令创建项目,project_name是你的项目名称,--ie选项表示支持低版本ie浏览器(ie8及以下),省略--e选项表示项目不兼容低版本ie

  3. cd project_name 命令行切换到上面创建的项目目录

  4. npm i 安装依赖包

  5. npm start 运行项目,打开浏览器输入http://localhost:3000或http://localhost:8080

兼容低版本ie说明

1.请使用commandjs规范,如使用require代替import,使用module.exports代替export等。如要使用import等语法,请自行配制。

2.使用webpack1

3.webpack-hot-middleware经测试2.1.0版本以上不兼容ie8及以下版本浏览器

4.style-loader经测试0.14版本以上不兼容ie8及以下版本浏览器

About

anujs webpack项目脚手架

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /