index.js
function htmlDependencies(file, instance, options) {

    var dependencies = walkDependencies(
        file,
        instance.htmlRules
    );

    correctDependencies(
        file,
        dependencies,
        instance.correctDependency
    );

    filterDependencies(
        file,
        dependencies,
        instance.filterDependency
    );

    if (options.process) {
        options.process(file, dependencies);
    }

    if (options.rename) {
        renameDependencies(
            file,
            dependencies,
            function (dependency) {
                return options.rename(
                    file,
                    dependency,
                    instance.hashMap,
                    instance.dependencyMap
                );
            }
        );
    }

}
function htmlDependencies(file, instance, options) {

    var dependencies = walkDependencies(
        file,
        instance.htmlRules
    );

    correctDependencies(
        file,
        dependencies,
        instance.correctDependency
    );

    filterDependencies(
        file,
        dependencies,
        instance.filterDependency
    );

    if (options.process) {
        options.process(file, dependencies);
    }

    if (options.rename) {
        renameDependencies(
            file,
            dependencies,
            function (dependency) {
                return options.rename(
                    file,
                    dependency,
                    instance.hashMap,
                    instance.dependencyMap
                );
            }
        );
    }

}
分析 html 文件依赖

@inner
@param {Object} file
@param {Object} instance
@param {Object} options
@return {Object}