Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ async function write_cdn_umd() {
`;
Deno.writeTextFileSync("npm/tinycolor.js", preamble + output[0].code);
Deno.writeTextFileSync("npm/dist/tinycolor-min.js", preamble + minified.code);

// Keeping these (without preamble) until we can confirm they aren't used by CDNs
// after moving to the npm/ path. At that point these files can be removed in
// https://github.com/bgrins/TinyColor/issues/260.
Deno.writeTextFileSync("tinycolor.js", output[0].code);
Deno.writeTextFileSync("dist/tinycolor-min.js", minified.code);
}

// Write necessary files for testing & publishing commonjs to npm.
Expand Down
2 changes: 1 addition & 1 deletion demo/server.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const handler = (req) => {
if (pathname === "/") {
return serveFile(req, "./index.html");
}
if (["/demo/demo.css", "/tinycolor.js"].includes(pathname)) {
if (["/demo/demo.css", "/npm/tinycolor.js"].includes(pathname)) {
return serveFile(req, `.${pathname}`);
}
if (pathname.startsWith("/api/")) {
Expand Down
1 change: 0 additions & 1 deletion dist/tinycolor-min.js

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>TinyColor - Fast, small color manipulation in JavaScript</title>

<link rel="stylesheet" href="demo/demo.css" type="text/css" media="screen" />
<script type='text/javascript' src='tinycolor.js'></script>
<script type='text/javascript' src='npm/tinycolor.js'></script>
<script type='text/javascript'>

function colorChange(color) {
Expand Down
Loading