diff --git a/src/UniversalDashboard.MaterialUI/build.ps1 b/src/UniversalDashboard.MaterialUI/build.ps1 index a2f0568f..9de71ccc 100644 --- a/src/UniversalDashboard.MaterialUI/build.ps1 +++ b/src/UniversalDashboard.MaterialUI/build.ps1 @@ -1,3 +1,5 @@ +param([Switch]$Minimal) + $BuildFolder = $PSScriptRoot $powerShellGet = Import-Module PowerShellGet -PassThru -ErrorAction Ignore @@ -15,8 +17,12 @@ Remove-Item -Path "$BuildFolder\public" -Force -Recurse New-Item -Path $OutputPath -ItemType Directory -& cyclonedx-bom -o materialui.bom.xml -npm install +if (-not $Minimal) +{ + & cyclonedx-bom -o materialui.bom.xml + npm install +} + npm run build Copy-Item $BuildFolder\public\*.bundle.js $OutputPath diff --git a/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx b/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx index 3a75a95a..e6461b0e 100644 --- a/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx +++ b/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx @@ -51,7 +51,7 @@ export default class UDCheckbox extends React.Component { render() { return