Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
fix: don't include custom.css in the release (#686)
Browse files Browse the repository at this point in the history
* fix: don't include custom.css in the release

Including an empty file makes it annoying for people who have created
a custom "custom.css" file as then they need to take care not to
overwrite their copy.

* fixup
  • Loading branch information
rchl authored Apr 5, 2021
1 parent 9af889c commit 438bc8b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The project structure has changed in the first versioned (v1.0.0) release. Inste
* Make sure that you have Home Assistant 0.77 or greater installed as only new authentication system is supported from now on
* Download the latest release zip file (`Tileboard.zip`) from https://github.com/resoai/TileBoard/releases and unpack to a directory of your choice
* In chosen directory rename `config.example.js` to `config.js` and adjust it for your needs
* Optionally create an empty `styles/custom.css` file. Everything will work without it but there will be a network request error logged in the console which can be annoying to some.
* Create a directory called `tileboard` inside `www` directory in HA's config path and copy all unpacked files there.
* TileBoard will be available at `http://HASS_IP:8123/local/tileboard/index.html` and will prompt you for your login credentials after restarting Home Assistant.

Expand Down
4 changes: 0 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ if (isProduction) {
outputJsName = 'app.js';
outputCssName = 'styles[extname]';
appPlugins.push(
copy([
// Copy over empty custom.css but don't overwrite in case user has customized it.
{ files: './styles/custom.css', dest: `./${outDir}/styles/`, options: { overwrite: false } },
]),
serve({
contentBase: outDir,
port: 8080,
Expand Down
Empty file removed styles/custom.css
Empty file.

0 comments on commit 438bc8b

Please sign in to comment.