This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(vite): switch asset copying plugin, remove unused javascript…
… file (#265) - Remove the unused `calcite-dist-build.js` file containing code for setting up the Distribution build. Instead, link to the build documentation, which has set up instructions. - An example containing JavaScript files that use conflicting builds will end up confusing some users. - We want to keep these samples simple so they are easy to fork and don't make CC look challenging to set up in various environments. - Vite doesn't have any quirks with using the Distribution build so it will work correctly if users follow the steps in our documentation. - Switch to `vite-plugin-static-copy` from `rollup-plugin-copy` resolves #251
- Loading branch information
Showing
6 changed files
with
470 additions
and
813 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="favicon.svg" /> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Calcite Vite</title> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | ||
|
||
<link rel="icon" type="image/svg+xml" href="favicon.svg" /> | ||
<title>Calcite Components - Vite</title> | ||
</head> | ||
|
||
<script type="module" src="/main.js"></script> | ||
<body> | ||
<h1> | ||
Hello, Vite <calcite-icon icon="banana"></calcite-icon> | ||
Hello, Vite | ||
<calcite-icon icon="banana"></calcite-icon> | ||
</h1> | ||
|
||
<calcite-date-picker range></calcite-date-picker> | ||
<calcite-button>My button</calcite-button> | ||
|
||
|
||
|
||
<!-- If using the distribution build, comment out the "main.js" file --> | ||
<script type="module" src="/main.js"></script> | ||
|
||
<!-- | ||
If using the distribution build, load the "calcite-dist-build.js" file to use Vite with auto-lazy loaded Calcite Components. | ||
@link https://developers.arcgis.com/calcite-design-system/get-started/#distribution | ||
--> | ||
<!-- <script type="module" src="/calcite-dist-build.js"></script> --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.