fis3-postpackager-loader-common
fis3-postpackager-loader common文件的便捷打包
Last updated 4 years ago by imweb .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fis3-postpackager-loader-common 
SYNC missed versions from official npm registry.

fis3-postpackager-loader-common

fis3-postpackager-loader common文件的便捷打包

安装

npm install fis3-postpackager-loader-common

使用

// fis-conf.js
fis.media('dist')
    .match('::package', {
        postpackager: [
            fis.plugin('loader-common', {
                main: {
                    '/common/lib.js': true
                }
            }),
            fis.plugin('loader', {
                resourceType: 'commonJs',
                allInOne: true
            })
        ]
    });

// lib.js
/**
 * @require 'mod.js'
 * @require './config.js'
 */

配置说明

  • main {Object.<String,Object|Boolean>} 需要单独打包文件的入口
    • key subpath
    • value 配置项
      • priority Number default 0 打包优先级
      • order Number default 0 嵌入html文件中的优先级
      • all: Boolean default false 即使依赖已打包至优先级更高的包任然打包包含它

Demo

Current Tags

  • 0.0.4                                ...           latest (4 years ago)

4 Versions

  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |