Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Aug 13, 2015
1 parent c6b538f commit 2db67ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fis3-hook-commonJs
# fis3-hook-commonjs

fis3 已经默认不自带模块化开发支持,那么如果需要采用 commonJs 规范作为模块化开发,请使用此插件。
fis3 已经默认不自带模块化开发支持,那么如果需要采用 commonjs 规范作为模块化开发,请使用此插件。

请配合 [mod.js](https://github.com/fex-team/mod/blob/master/mod.js) 一起使用。

Expand All @@ -9,13 +9,13 @@ fis3 已经默认不自带模块化开发支持,那么如果需要采用 commo
全局安装或者本地安装都可以。

```
npm install -g fis3-hook-commonJs
npm install -g fis3-hook-commonjs
```

或者

```
npm install fis3-hook-commonJs
npm install fis3-hook-commonjs
```

## 用法
Expand All @@ -24,7 +24,7 @@ npm install fis3-hook-commonJs


```js
fis.hook('commonJs', {
fis.hook('commonjs', {
// 配置项
});
```
Expand All @@ -35,7 +35,7 @@ fis.hook('commonJs', {
* `paths` 用来设置别名,路径基于 `baseUrl` 设置。

```js
fis.hook('commonJs', {
fis.hook('commonjs', {
paths: {
$: '/modules/jquery/jquery-1.11.2.js'
}
Expand All @@ -44,7 +44,7 @@ fis.hook('commonJs', {
* `packages` 用来配置包信息,方便项目中引用。

```js
fis.hook('commonJs', {
fis.hook('commonjs', {
packages: [
{
name: 'foo',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fis3-hook-commonJs",
"name": "fis3-hook-commonjs",
"version": "0.0.1",
"description": "fis3 commonJs module",
"main": "index.js",
Expand Down

0 comments on commit 2db67ce

Please sign in to comment.