0.0.7 • Published 8 years ago

fis-preprocessor-dependency-injection v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

###fis-应用商店依赖注入插件

####使用方法: 1. 在preprocessor中引入该插件 例:

 ```
 modules: {
       preprocessor: {
         //html后缀文件会经过dependency-injectiont插件的预处理
         //进行依赖注入
         html: 'dependency-injection'
       },
     }
 ```
  1. 在settings中配置参数 例:
    settings: {
          preprocessor: {
            'dependency-injection': [
              {
                targetFile: 'views/.*html',
                dependencyFile: 'Injection/.*js'
              },
              {
                targetFile: ['views/search/search-guide.html'],
                dependencyFile: ['Injection/.*', 'assets/js/global.js', 'views/index/index.js']
              }
            ]
          }   
    或者
     settings: {
           preprocessor: {
             dependency-injection': {    
                 targetFile: 'views/index/index.html',
                 dependencyFile: 'Injection/.*'
              }
           }   
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago