Skip to content

把webpack alias配置同步到jsconfig.json 和 tsconfig.json

Notifications You must be signed in to change notification settings

deepkolos/webpack-alias-sync-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-alias-sync-plugin

把 webpack alias 配置同步到 jsconfig/tsconfig.json 的插件

目前支持简单的 alias 规则, 目录对应目录, 文件对应文件

使用

> npm i -D webpack-alias-sync-plugin

webpack.config.js

const WebpackAliasSyncPlugin = require('webpack-alias-sync-plugin');

module.export = {
  plugins: [new WebpackAliasSyncPlugin()],
};

TODO

  1. 兼容完全 webpack resolve 规则
  2. 完善单元测试

About

把webpack alias配置同步到jsconfig.json 和 tsconfig.json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published