https://github.com/lwdgit/fis3-hook-cmdpack
A fis3 plugin to wrap cmd to amd & DO NOT NEED require.js
https://github.com/lwdgit/fis3-hook-cmdpack
Last synced: 4 months ago
JSON representation
A fis3 plugin to wrap cmd to amd & DO NOT NEED require.js
- Host: GitHub
- URL: https://github.com/lwdgit/fis3-hook-cmdpack
- Owner: lwdgit
- License: mit
- Created: 2015-11-01T06:45:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T10:05:06.000Z (over 10 years ago)
- Last Synced: 2025-02-15T23:04:38.887Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# fis3-hook-cmdpack
> 一个自动将cmd模块打包成amd模块,且**无需引入模块加载器**(如require)的插件(FIS3 Only)。
#usage
```javascript
//fis-conf.js
fis.hook('cmdpack');
fis.match('modules/**', {
cmdpack: true,
packTo: 'bundle.js'
});
fis.match('cal.js', {
packOrder: -100
});
```
#example
See [example](https://github.com/lwdgit/fis3-hook-cmdpack/tree/master/example).