alias - chenxi-20/cjm-tiny-vue GitHub Wiki
// configureWebpack: { // // plugins: [new BundleAnalyzerPlugin()], // resolve: { // // alias: [ // // { // // find: /@opentiny/vue-theme/(?!(smb)|(images))/, // // replacement: '@opentiny/vue-theme/smb-theme/' // // } // // ] // alias: { // '@opentiny/vue-theme/$': '@opentiny/vue-theme/smb-theme/' // // '@opentiny/vue-theme/smb-theme/images/': '@opentiny/vue-theme/images/' // // '@opentiny/vue-theme/images/': '@opentiny/vue-theme/images/' // } // } // } chainWebpack: (config) => { // /@opentiny/vue-theme/(?!(smb)|(images))/ // config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme/smb-theme') config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme/aurora-theme') }
resolve: { alias: [ // { // find: /vue-theme/alert//, // replacement: 'vue-theme/smb-theme/alert/' // }, // { // find: /vue-theme/base//, // replacement: 'vue-theme/smb-theme/base/' // } // { // find: /@opentiny/vue-theme/(?!aurora)/, // replacement: '@opentiny/vue-theme/aurora-theme/' // }, { find: /@opentiny/vue-theme/(?!(smb)|(images))/, replacement: '@opentiny/vue-theme/smb-theme/' } ] }