Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 934 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 934 Bytes

简介

解析调用模块关系

安装

    npm install  call-dependency

使用

    //DEMO:
    deps('./src/main.js', {
		fileExtensions: ['js', 'scss', 'vue', 'css'],
		resolve: {
			alias: {
				'@': path.resolve(__dirname, '../src'),
			},
			extensions:['.js','.vue','.json']

		},
		// includeNpm: true
	})

	.then(res => {
		return res.image('./power-puff.svg');
	})
	.then((writtenImagePath) => {
		console.log('Image written to ' + writtenImagePath);
	});

结果图

options

参数 必输 默认 说明 备注
entry 入口文件

PR

ISSUE

Inspired

其它