mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-04 17:24:01 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24caaad7d9 |
@@ -26,6 +26,18 @@ async function collectionCopy(rootDir: string) {
|
||||
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
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Config } from '@stencil/core';
|
||||
|
||||
export const config: Config = {
|
||||
namespace: 'ionicons',
|
||||
buildEs5: 'prod',
|
||||
outputTargets: [
|
||||
{
|
||||
type: 'dist',
|
||||
|
||||
Reference in New Issue
Block a user