mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
chore: add devcontainer.json (#2545)
* chore: add devcontainer.json * Set sockPort: location
This commit is contained in:
14
.devcontainer/devcontainer.json
Normal file
14
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "KaTeX Codespaces",
|
||||||
|
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:14",
|
||||||
|
"extensions": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"flowtype.flow-for-vscode",
|
||||||
|
"stylelint.vscode-stylelint",
|
||||||
|
"arcanis.vscode-zipfs"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.shell.linux": "/bin/bash"
|
||||||
|
},
|
||||||
|
"postCreateCommand": "git submodule update --init --recursive && CI=true yarn install"
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- init: yarn install
|
- init: yarn install
|
||||||
command: yarn start --sockPort 443
|
command: yarn start
|
||||||
- openMode: split-right
|
- openMode: split-right
|
||||||
command: echo "Run 'yarn test' to run tests."
|
command: echo "Run 'yarn test' to run tests."
|
||||||
|
|
||||||
|
@@ -19,6 +19,7 @@ katexConfig.devServer = {
|
|||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: PORT,
|
port: PORT,
|
||||||
|
sockPort: 'location',
|
||||||
stats: {
|
stats: {
|
||||||
colors: true,
|
colors: true,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user