为路径添加别名

config.resolve.alias // key,value自行定义,比如.set('@@', resolve('src/components'))
            .set('@', resolve('src'))
            .set('_c', resolve('src/components'))
            .set('api', resolve('src/api'))
            .set('_conf', resolve('config'))

posted on 2020-08-19 15:07  漫思  阅读(498)  评论(0编辑  收藏  举报

导航