Skip to content

Commit

Permalink
add prod dist and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibz committed Apr 16, 2024
1 parent 5aa1f36 commit 5418ddc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ bg-animation: # Root configuration object
style: # CSS applied to individual bg's, say if you prefer the bg to be darker, acting like an overlay
parameters:
background-image: black # Example of a parameter thats passed onto a background
view: # View-specific background settings e.g. http://homeassistant/lovelace/home - "home"
home: # Settings for the 'home' view
view: # View-specific background settings e.g. http://homeassistant/lovelace/lights - "lights"
lights: # Settings for the 'lights' view
- id: 11.space # Identifier for a background
- id: 15.sound # Identifier for another background
home: # e.g. http://homeassistant/lovelace/gruffalo - "gruffalo" etc
gruffalo: # e.g. http://homeassistant/lovelace/gruffalo - "gruffalo" etc
- id: 11.space # Identifier for a background
- id: 15.sound # Identifier for another background
```
Expand Down
2 changes: 1 addition & 1 deletion frontend/bg-animation.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Lovelace Live Background Animation",
"filename": "/frontend/bg-animation.min.js",
"filename": "frontend/bg-animation.min.js",
"render_readme": true
}
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ const path = require('path');
module.exports = {
entry: './frontend//bg-animation.js',
watch: true,
mode: 'development',
mode: 'production',
watchOptions: {
aggregateTimeout: 200,
poll: 1000,
},
output: {
filename: 'bg-animation.min.js',
path: '\\\\storage\\docker\\services\\homeassistant\\config\\www\\lovelace-bg-animation\\frontend',
// path: path.resolve(__dirname, 'frontend'),
// path: '\\\\storage\\docker\\services\\homeassistant\\config\\www\\lovelace-bg-animation\\frontend',
path: path.resolve(__dirname, 'frontend'),
},
optimization: {
removeAvailableModules: false,
Expand Down

0 comments on commit 5418ddc

Please sign in to comment.