fix(static): remove from gitignore (#132)

* HTML to Pug converter (#127)

* feat(pug): add HTML to pug converter

* fix(pug): added package details

* feat(analyze): added webpack bundle analyzer

*  fix(rust): handle special characters and duplicate keys (#131)

* remove duplicate google tag manager (#122)

* Update _app.tsx (#124)

* docs: add timneutkens as a contributor (#125)

* docs: update README.md

* docs: update .all-contributorsrc

* Upgrade Next.js to 9 (#126)

* Upgrade Next.js to 9

* Add back engines key

* Add globalObject

Brings in suggestion from https://github.com/zeit/next.js/issues/7873#issuecomment-512795482

* Add temporary fix for window issue

* fix(font): add fallback font for non mac browsers (#130)

closes #129

* fix(rust): handle special characters and duplicate keys

closes #97

* fix(rust): handle special chars

closes #97, closes #95, closes #89, closes #62

* chore(rust): remove settings

* feat(kotlin): added JSON to kotlin and json schema

* fixes

* fixes

* fixes

* fixes

* fixes

* added favicon

* social media tags

* fix(static): remove from gitignore

* fixes
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2019-07-25 00:59:20 +05:30
1 parent 9f67f97573
commit 85ffa616cd
21 files changed
+336440 -9

No files matched your search

+5 -7
View File
@@ -3,24 +3,22 @@ import { editor } from "monaco-editor";
import { Pane } from "evergreen-ui";
import { lightEditor } from "@utils/theme";
const publicDest = IS_DEV ? "/static" : "/_next/static";
// @ts-ignore
self.MonacoEnvironment = {
getWorkerUrl: function(_moduleId, label) {
if (label === "json") {
return `.${publicDest}/json.worker.js`;
return `/static/json.worker.js`;
}
if (label === "css") {
return `.${publicDest}/css.worker.js`;
return `/static/css.worker.js`;
}
if (label === "html") {
return `.${publicDest}/html.worker.js`;
return `/static/html.worker.js`;
}
if (label === "typescript" || label === "javascript") {
return `.${publicDest}/typescript.worker.js`;
return `/static/typescript.worker.js`;
}
return `.${publicDest}/editor.worker.js`;
return `/static/editor.worker.js`;
}
};