mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-03 17:13:51 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86a051ca63 | ||
|
|
28d0338ee0 | ||
|
|
3ec9271e83 | ||
|
|
19dd66469c | ||
|
|
43d61fe909 | ||
|
|
1038a7f682 | ||
|
|
947091adf7 | ||
|
|
728aa746a0 | ||
|
|
32da247bc1 | ||
|
|
f21bb0f097 | ||
|
|
e6a5af1a96 | ||
|
|
36a0c6b103 | ||
|
|
e63653cbe1 | ||
|
|
4ca8139f77 | ||
|
|
24caaad7d9 | ||
|
|
8c2a507fcf | ||
|
|
c76f2a2556 | ||
|
|
0d7f507677 | ||
|
|
b3155d9603 | ||
|
|
9139a01e18 | ||
|
|
0541db0f28 | ||
|
|
200678a619 | ||
|
|
66556ea45c |
@@ -10,11 +10,13 @@ log.txt
|
||||
.idea/
|
||||
.versions/
|
||||
.vscode/
|
||||
components/
|
||||
node_modules/
|
||||
tmp/
|
||||
dist/
|
||||
icons/
|
||||
.DS_Store
|
||||
scripts/*.js
|
||||
!scripts/install-loader.js
|
||||
|
||||
www/
|
||||
Generated
+3614
-5421
File diff suppressed because it is too large
Load Diff
+17
-14
@@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "5.4.0",
|
||||
"version": "6.0.1",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
"dist/",
|
||||
"icons/"
|
||||
],
|
||||
"module": "dist/index.mjs",
|
||||
"main": "dist/index.js",
|
||||
"main": "./dist/index.cjs.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"unpkg": "dist/ionicons.js",
|
||||
"collection": "dist/collection/collection-manifest.json",
|
||||
@@ -22,17 +23,20 @@
|
||||
"release": "np --no-2fa",
|
||||
"version": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@stencil/core": "~2.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "^1.15.0",
|
||||
"@types/fs-extra": "^9.0.1",
|
||||
"@types/jest": "^26.0.14",
|
||||
"@types/node": "^14.11.5",
|
||||
"@types/fs-extra": "^9.0.6",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/node": "^14.14.22",
|
||||
"@types/svgo": "^1.3.3",
|
||||
"fs-extra": "9.0.1",
|
||||
"jest": "^26.5.2",
|
||||
"jest-cli": "^26.5.2",
|
||||
"np": "^6.5.0",
|
||||
"svgo": "1.3.2"
|
||||
"fs-extra": "^9.1.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-cli": "^26.6.3",
|
||||
"np": "^7.2.0",
|
||||
"svgo": "1.3.2",
|
||||
"typescript": "^4.1.3"
|
||||
},
|
||||
"keywords": [
|
||||
"icon pack",
|
||||
@@ -67,6 +71,5 @@
|
||||
"license": "MIT",
|
||||
"sideEffects": [
|
||||
"icons/imports/"
|
||||
],
|
||||
"dependencies": {}
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import fs from 'fs-extra';
|
||||
import { join, basename } from 'path';
|
||||
import { join } from 'path';
|
||||
import Svgo from 'svgo';
|
||||
|
||||
async function build(rootDir: string) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import fs from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
|
||||
|
||||
async function collectionCopy(rootDir: string) {
|
||||
// move optimized svgs to correct collection location
|
||||
const optimizedSrc = join(rootDir, 'dist', 'ionicons', 'svg');
|
||||
@@ -11,6 +10,35 @@ async function collectionCopy(rootDir: string) {
|
||||
// we don't to copy the src svgs to collection
|
||||
await fs.remove(join(rootDir, 'dist', 'collection', 'svg'));
|
||||
|
||||
const cePackageDir = join(rootDir, 'components');
|
||||
const cePackageJsonPath = join(cePackageDir, 'package.json');
|
||||
const ceCjsPath = join(cePackageDir, 'index.cjs.js');
|
||||
|
||||
const emptyCjs = `/*empty cjs*/`;
|
||||
await fs.writeFile(ceCjsPath, emptyCjs);
|
||||
|
||||
const cePackageJson = {
|
||||
name: 'ionicons/components',
|
||||
description: 'Ionicons custom element.',
|
||||
main: './index.cjs.js',
|
||||
module: './index.js',
|
||||
types: './index.d.ts',
|
||||
private: true,
|
||||
};
|
||||
await fs.writeFile(cePackageJsonPath, JSON.stringify(cePackageJson, null, 2));
|
||||
|
||||
/**
|
||||
* TODO: Remove this in Ionicons v6.0
|
||||
* Stencil 2 removed the legacy loader,
|
||||
* but that is what Ionicons users were using
|
||||
* to load Ionicons from a CDN. The lines
|
||||
* below will add in a legacy loader for users
|
||||
* to use so there is no breaking change in usage.
|
||||
*/
|
||||
const installLoaderSrc = join(rootDir, 'scripts', 'install-loader.js');
|
||||
const installLoaderDest = join(rootDir, 'dist', 'ionicons.js');
|
||||
await fs.copyFile(installLoaderSrc, installLoaderDest)
|
||||
|
||||
// this is temporary!!!!
|
||||
// removing the `type` from the d.ts export
|
||||
// to make it easier for users migrating between
|
||||
@@ -23,4 +51,4 @@ async function collectionCopy(rootDir: string) {
|
||||
await fs.writeFile(typesDist, types);
|
||||
}
|
||||
|
||||
collectionCopy(join(__dirname, '..'));
|
||||
collectionCopy(join(__dirname, '..'));
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
(function(doc){
|
||||
var scriptElm = doc.scripts[doc.scripts.length - 1];
|
||||
var warn = ['[ionicons] Deprecated script, please remove: ' + scriptElm.outerHTML];
|
||||
|
||||
warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:')
|
||||
|
||||
var parts = scriptElm.src.split('/');
|
||||
parts.pop();
|
||||
parts.push('ionicons');
|
||||
var url = parts.join('/');
|
||||
|
||||
var scriptElm = doc.createElement('script');
|
||||
scriptElm.setAttribute('type', 'module');
|
||||
scriptElm.src = url + '/ionicons.esm.js';
|
||||
warn.push(scriptElm.outerHTML);
|
||||
scriptElm.setAttribute('data-stencil-namespace', 'ionicons');
|
||||
doc.head.appendChild(scriptElm);
|
||||
|
||||
|
||||
scriptElm = doc.createElement('script');
|
||||
scriptElm.setAttribute('nomodule', '');
|
||||
scriptElm.src = url + '/ionicons.js';
|
||||
warn.push(scriptElm.outerHTML);
|
||||
scriptElm.setAttribute('data-stencil-namespace', 'ionicons');
|
||||
doc.head.appendChild(scriptElm)
|
||||
|
||||
console.warn(warn.join('\n'));
|
||||
|
||||
})(document);
|
||||
Vendored
-16
@@ -7,14 +7,6 @@
|
||||
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
||||
export namespace Components {
|
||||
interface IonIcon {
|
||||
/**
|
||||
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
|
||||
*/
|
||||
"ariaHidden"?: string;
|
||||
/**
|
||||
* Specifies the label to use for accessibility. Defaults to the icon name.
|
||||
*/
|
||||
"ariaLabel"?: string;
|
||||
/**
|
||||
* The color to use for the background of the item.
|
||||
*/
|
||||
@@ -75,14 +67,6 @@ declare global {
|
||||
}
|
||||
declare namespace LocalJSX {
|
||||
interface IonIcon {
|
||||
/**
|
||||
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
|
||||
*/
|
||||
"ariaHidden"?: string;
|
||||
/**
|
||||
* Specifies the label to use for accessibility. Defaults to the icon name.
|
||||
*/
|
||||
"ariaLabel"?: string;
|
||||
/**
|
||||
* The color to use for the background of the item.
|
||||
*/
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';
|
||||
import { getSvgContent, ioniconContent } from './request';
|
||||
import { getName, getUrl } from './utils';
|
||||
import { getName, getUrl, inheritAttributes } from './utils';
|
||||
|
||||
@Component({
|
||||
tag: 'ion-icon',
|
||||
assetsDir: 'svg',
|
||||
assetsDirs: ['svg'],
|
||||
styleUrl: 'icon.css',
|
||||
shadow: true,
|
||||
})
|
||||
export class Icon {
|
||||
private io?: IntersectionObserver;
|
||||
private iconName: string | null = null;
|
||||
private inheritedAttributes: { [k: string]: any } = {};
|
||||
|
||||
@Element() el!: HTMLElement;
|
||||
|
||||
@State() private svgContent?: string;
|
||||
@State() private isVisible = false;
|
||||
@State() private ariaLabel?: string;
|
||||
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
@@ -26,16 +29,6 @@ export class Icon {
|
||||
*/
|
||||
@Prop() color?: string;
|
||||
|
||||
/**
|
||||
* Specifies the label to use for accessibility. Defaults to the icon name.
|
||||
*/
|
||||
@Prop({ mutable: true, reflectToAttr: true }) ariaLabel?: string;
|
||||
|
||||
/**
|
||||
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
|
||||
*/
|
||||
@Prop({ reflect: true }) ariaHidden?: string;
|
||||
|
||||
/**
|
||||
* Specifies which icon to use on `ios` mode.
|
||||
*/
|
||||
@@ -54,7 +47,7 @@ export class Icon {
|
||||
/**
|
||||
* Specifies which icon to use from the built-in set of icons.
|
||||
*/
|
||||
@Prop() name?: string;
|
||||
@Prop({ reflect: true }) name?: string;
|
||||
|
||||
/**
|
||||
* Specifies the exact `src` of an SVG file to use.
|
||||
@@ -87,6 +80,10 @@ export class Icon {
|
||||
* @default true
|
||||
*/
|
||||
@Prop() sanitize = true;
|
||||
|
||||
componentWillLoad() {
|
||||
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
// purposely do not return the promise here because loading
|
||||
@@ -125,6 +122,12 @@ export class Icon {
|
||||
cb();
|
||||
}
|
||||
}
|
||||
|
||||
private hasAriaHidden = () => {
|
||||
const { el } = this;
|
||||
|
||||
return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
|
||||
}
|
||||
|
||||
@Watch('name')
|
||||
@Watch('src')
|
||||
@@ -143,26 +146,36 @@ export class Icon {
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.ariaLabel && this.ariaHidden !== 'true') {
|
||||
const label = getName(this.name, this.icon, this.mode, this.ios, this.md);
|
||||
// user did not provide a label
|
||||
// come up with the label based on the icon name
|
||||
if (label) {
|
||||
this.ariaLabel = label.replace(/\-/g, ' ');
|
||||
}
|
||||
const label = this.iconName = getName(this.name, this.icon, this.mode, this.ios, this.md);
|
||||
|
||||
/**
|
||||
* Come up with a default label
|
||||
* in case user does not provide their own.
|
||||
*/
|
||||
if (label) {
|
||||
this.ariaLabel = label.replace(/\-/g, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { iconName, ariaLabel, inheritedAttributes } = this;
|
||||
const mode = this.mode || 'md';
|
||||
const flipRtl =
|
||||
this.flipRtl ||
|
||||
(this.ariaLabel &&
|
||||
(this.ariaLabel.indexOf('arrow') > -1 || this.ariaLabel.indexOf('chevron') > -1) &&
|
||||
(iconName &&
|
||||
(iconName.indexOf('arrow') > -1 || iconName.indexOf('chevron') > -1) &&
|
||||
this.flipRtl !== false);
|
||||
|
||||
/**
|
||||
* Only set the aria-label if a) we have generated
|
||||
* one for the icon and if aria-hidden is not set to "true".
|
||||
* If developer wants to set their own aria-label, then
|
||||
* inheritedAttributes down below will override whatever
|
||||
* default label we have set.
|
||||
*/
|
||||
return (
|
||||
<Host
|
||||
aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null}
|
||||
role="img"
|
||||
class={{
|
||||
[mode]: true,
|
||||
@@ -170,6 +183,7 @@ export class Icon {
|
||||
[`icon-${this.size}`]: !!this.size,
|
||||
'flip-rtl': !!flipRtl && (this.el.ownerDocument as Document).dir === 'rtl',
|
||||
}}
|
||||
{...inheritedAttributes}
|
||||
>
|
||||
{Build.isBrowser && this.svgContent ? (
|
||||
<div class="icon-inner" innerHTML={this.svgContent}></div>
|
||||
|
||||
@@ -7,21 +7,19 @@
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ------------ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------- |
|
||||
| `ariaHidden` | `aria-hidden` | Set the icon to hidden, respectively `true`, to remove it from the accessibility tree. | `string \| undefined` | `undefined` |
|
||||
| `ariaLabel` | `aria-label` | Specifies the label to use for accessibility. Defaults to the icon name. | `string \| undefined` | `undefined` |
|
||||
| `color` | `color` | The color to use for the background of the item. | `string \| undefined` | `undefined` |
|
||||
| `flipRtl` | `flip-rtl` | Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. | `boolean \| undefined` | `undefined` |
|
||||
| `icon` | `icon` | A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property. | `any` | `undefined` |
|
||||
| `ios` | `ios` | Specifies which icon to use on `ios` mode. | `string \| undefined` | `undefined` |
|
||||
| `lazy` | `lazy` | If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. | `boolean` | `false` |
|
||||
| `md` | `md` | Specifies which icon to use on `md` mode. | `string \| undefined` | `undefined` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. | `string` | `getIonMode()` |
|
||||
| `name` | `name` | Specifies which icon to use from the built-in set of icons. | `string \| undefined` | `undefined` |
|
||||
| `sanitize` | `sanitize` | When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`. | `boolean` | `true` |
|
||||
| `size` | `size` | The size of the icon. Available options are: `"small"` and `"large"`. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | Specifies the exact `src` of an SVG file to use. | `string \| undefined` | `undefined` |
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ---------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------- |
|
||||
| `color` | `color` | The color to use for the background of the item. | `string \| undefined` | `undefined` |
|
||||
| `flipRtl` | `flip-rtl` | Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. | `boolean \| undefined` | `undefined` |
|
||||
| `icon` | `icon` | A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property. | `any` | `undefined` |
|
||||
| `ios` | `ios` | Specifies which icon to use on `ios` mode. | `string \| undefined` | `undefined` |
|
||||
| `lazy` | `lazy` | If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. | `boolean` | `false` |
|
||||
| `md` | `md` | Specifies which icon to use on `md` mode. | `string \| undefined` | `undefined` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. | `string` | `getIonMode()` |
|
||||
| `name` | `name` | Specifies which icon to use from the built-in set of icons. | `string \| undefined` | `undefined` |
|
||||
| `sanitize` | `sanitize` | When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`. | `boolean` | `true` |
|
||||
| `size` | `size` | The size of the icon. Available options are: `"small"` and `"large"`. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | Specifies the exact `src` of an SVG file to use. | `string \| undefined` | `undefined` |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
@@ -29,4 +29,106 @@ describe('icon', () => {
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders rtl with aria-hidden', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
direction: 'rtl',
|
||||
html: `<ion-icon name="chevron-forward" aria-hidden="true"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md flip-rtl" name="chevron-forward" role="img" aria-hidden="true">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders default aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders custom aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders custom label after changing source', async () => {
|
||||
const page = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
|
||||
});
|
||||
|
||||
const icon = page.root;
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
|
||||
icon.name = 'trash';
|
||||
await page.waitForChanges();
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="trash" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders default label after changing source', async () => {
|
||||
const page = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward"></ion-icon>`,
|
||||
});
|
||||
|
||||
const icon = page.root;
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
|
||||
icon.name = 'trash';
|
||||
await page.waitForChanges();
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="trash" role="img" aria-label="trash">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -113,4 +113,30 @@ export const isSrc = (str: string) => str.length > 0 && /(\/|\.)/.test(str);
|
||||
|
||||
export const isStr = (val: any): val is string => typeof val === 'string';
|
||||
|
||||
export const toLower = (val: string) => val.toLowerCase();
|
||||
export const toLower = (val: string) => val.toLowerCase();
|
||||
|
||||
/**
|
||||
* Elements inside of web components sometimes need to inherit global attributes
|
||||
* set on the host. For example, the inner input in `ion-input` should inherit
|
||||
* the `title` attribute that developers set directly on `ion-input`. This
|
||||
* helper function should be called in componentWillLoad and assigned to a variable
|
||||
* that is later used in the render function.
|
||||
*
|
||||
* This does not need to be reactive as changing attributes on the host element
|
||||
* does not trigger a re-render.
|
||||
*/
|
||||
export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {
|
||||
const attributeObject: { [k: string]: any } = {};
|
||||
|
||||
attributes.forEach(attr => {
|
||||
if (el.hasAttribute(attr)) {
|
||||
const value = el.getAttribute(attr);
|
||||
if (value !== null) {
|
||||
attributeObject[attr] = el.getAttribute(attr);
|
||||
}
|
||||
el.removeAttribute(attr);
|
||||
}
|
||||
});
|
||||
|
||||
return attributeObject;
|
||||
}
|
||||
+4
-1
@@ -3752,13 +3752,15 @@
|
||||
{
|
||||
"name": "earth",
|
||||
"tags": [
|
||||
"earth"
|
||||
"earth",
|
||||
"globe"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "earth-outline",
|
||||
"tags": [
|
||||
"earth",
|
||||
"globe",
|
||||
"outline"
|
||||
]
|
||||
},
|
||||
@@ -3766,6 +3768,7 @@
|
||||
"name": "earth-sharp",
|
||||
"tags": [
|
||||
"earth",
|
||||
"globe",
|
||||
"sharp"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -2,11 +2,16 @@ import { Config } from '@stencil/core';
|
||||
|
||||
export const config: Config = {
|
||||
namespace: 'ionicons',
|
||||
buildEs5: 'prod',
|
||||
outputTargets: [
|
||||
{
|
||||
type: 'dist',
|
||||
empty: false,
|
||||
},
|
||||
{
|
||||
type: 'dist-custom-elements',
|
||||
dir: './components',
|
||||
},
|
||||
{
|
||||
type: 'docs-readme',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user