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

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

    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 cssDependencies(file, instance, options) {

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

    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 cssDependencies ( file , instance , options ) { var dependencies = walkDependencies ( file , instance . cssRules ) ; 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 ) ; } ) ; } }
分析 css 文件依赖

@inner
@param {Object} file
@param {Object} instance
@param {Object} options
@return {Object}
分析 css 文件依赖