mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-08-16 12:49:14 +00:00
feat(forklift): fixed to fix the icon on extension
Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
This commit is contained in:
parent
bf01a9dc43
commit
5d8d7ec986
@ -1 +1,18 @@
|
||||
module.exports = require('@rancher/shell/pkg/vue.config')(__dirname);
|
||||
const path = require('path');
|
||||
|
||||
const config = require('@rancher/shell/pkg/vue.config')(__dirname);
|
||||
const originalConfigureWebpack = config.configureWebpack;
|
||||
|
||||
config.configureWebpack = function(cfg) {
|
||||
if (originalConfigureWebpack) {
|
||||
originalConfigureWebpack(cfg);
|
||||
}
|
||||
|
||||
// Force @rancher/icons to resolve to the top-level 2.0.60 version
|
||||
// so new icons (datastore, disk, network, etc.) are available in extension mode.
|
||||
const maindir = path.resolve(__dirname, '..', '..');
|
||||
|
||||
cfg.resolve.alias['@rancher/icons'] = path.resolve(maindir, 'node_modules', '@rancher/icons');
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user