Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.62 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.62 KB

Edit, Customize, and Override Bootstrap with Visual Studio Code

Bootstrap Bootstrap VS Code

Install

npm install
npm install -D prettier prettier-plugin-go-template

Copy .vscode directory, and .prettierignore .prettierrc.json files to the Bootstrap directory.

Disable TODO warnings

.eslintrc.json

{
  "rules": {
    "no-warning-comments": [
      "off",
      {
        "terms": [
          "todo",
          "fixme",
          "TODO",
          "FIXME"
        ]
      }
    ],
  }
}

Optional modification

Browsing on all IP addresses

packages.json

{
  "scripts": {
    "docs-serve-ip": "hugo server --baseURL http://$(hostname) --bind 0.0.0.0 --port 9001 --disableFastRender",
    "docs-serve-only-ip": "npx sirv-cli _site --baseURL http://$(hostname) --bind 0.0.0.0 --port 9001"
  }
}
npm run docs-serve-ip
npm run docs-serve-only-ip

Trademark notices

Visual Studio Code, VS Code, and the Visual Studio Code icon are trademarks of Microsoft Corporation. All rights reserved.