323: Needed different snippets for HTML and JS

This commit is contained in:
metacryst
2023-09-02 14:59:36 -05:00
parent cb70af8832
commit e2316ef857
4 changed files with 30 additions and 2 deletions

24
VSCode/snippets-html.json Normal file
View File

@@ -0,0 +1,24 @@
{
"*page": {
"prefix": "*page",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
" <head>",
" <title>Index</title>",
" <script type=\"module\">",
" import * as quill from './Quill/quill.js';",
" window.quill = {};",
" Object.entries(quill).forEach(([name, exported]) => window[name] = exported);",
" </script>",
" <script type=\"module\" src=\"index.js\"></script>",
" </head>",
" <body>",
"",
"",
" </body>",
"</html>"
],
"description": "Use the DOM collection of functions"
}
}