Closed bajrangCoder closed 10 months ago
Instead of loading icons from GitHub, load it locally so it will work in offline mode too. Put your icons in
dist
folder and scss file access like this:this.baseUrl+"youricon.svg"
And make sure to include your icons in plugin.json files array.
Still awake? My idea was to leave it locally even though I couldn't import the icons in the dist folder using plugin.json: "files": ["icons/*"], "files": ["icons/*.svg"]
I tried both ways I couldn't can you tell me how to do it! About this.baseUrl+"youricon.svg"
Change the scss url()? I didn't understand right
Instead of loading icons from GitHub, load it locally so it will work in offline mode too. Put your icons in
dist
folder and scss file access like this:this.baseUrl+"youricon.svg"
And make sure to include your icons in plugin.json files array.Still awake? My idea was to leave it locally even though I couldn't import the icons in the dist folder using plugin.json:
"files": ["icons/*"], "files": ["icons/*.svg"]
I tried both ways I couldn't can you tell me how to do it! Aboutthis.baseUrl+"youricon.svg"
Change the scss url()? I didn't understand right
You can't do like that you will need to define every icons file in plugin.json files array Like this:
files: [
"icons/1.svg",
"icons/2.svg",
And so on...
]
Inside your scss replace GitHub icon url to this:
this.baseUrl + "icons/1.svg"
Instead of loading icons from GitHub, load it locally so it will work in offline mode too. Put your icons in
dist
folder and scss file access like this:this.baseUrl+"youricon.svg"
And make sure to include your icons in plugin.json files array.Still awake? My idea was to leave it locally even though I couldn't import the icons in the dist folder using plugin.json:
"files": ["icons/*"], "files": ["icons/*.svg"]
I tried both ways I couldn't can you tell me how to do it! Aboutthis.baseUrl+"youricon.svg"
Change the scss url()? I didn't understand rightYou can't do like that you will need to define every icons file in plugin.json files array Like this:
files: [ "icons/1.svg", "icons/2.svg", And so on... ]
Inside your scss replace GitHub icon url to this:
this.baseUrl + "icons/1.svg"
the icons are not going to the dist folder, and the error sass with this "+" this.baseUrl + "icons/1.svg"
I can test it there to see if it works and I will be grateful I think it must be my mistake: git clone -b <branch> <url>
You can take refrence from here : https://github.com/bajrangCoder/acode-ayu-mirage-theme
@bajrangCoder The plugin has been fixed now there is offline availability, we added some new icons as well that acode didn't have!
Instead of loading icons from GitHub, load it locally so it will work in offline mode too. Put your icons in
dist
folder and scss file access like this:this.baseUrl+"youricon.svg"
And make sure to include your icons in plugin.json files array.