mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-08-16 12:49:14 +00:00
22 lines
659 B
JavaScript
22 lines
659 B
JavaScript
const path = require('path');
|
|
const baseConfig = require('@rancher/shell/vue.config');
|
|
|
|
const shellConfig = baseConfig(__dirname, {
|
|
excludes: [],
|
|
// excludes: ['harvester']
|
|
});
|
|
|
|
const originalConfigureWebpack = shellConfig.configureWebpack;
|
|
|
|
shellConfig.configureWebpack = function(config) {
|
|
if (originalConfigureWebpack) {
|
|
originalConfigureWebpack(config);
|
|
}
|
|
|
|
// Force all @rancher/icons imports (including from @rancher/shell) to use
|
|
// the top-level 2.0.60 version so new icons are available everywhere.
|
|
config.resolve.alias['@rancher/icons'] = path.resolve(__dirname, 'node_modules', '@rancher/icons');
|
|
};
|
|
|
|
module.exports = shellConfig;
|