mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-04 18:58:39 +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:
|
||||
- init: yarn install
|
||||
command: yarn start --sockPort 443
|
||||
command: yarn start
|
||||
- openMode: split-right
|
||||
command: echo "Run 'yarn test' to run tests."
|
||||
|
||||
|
@@ -19,6 +19,7 @@ katexConfig.devServer = {
|
||||
disableHostCheck: true,
|
||||
host: '0.0.0.0',
|
||||
port: PORT,
|
||||
sockPort: 'location',
|
||||
stats: {
|
||||
colors: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user