Skip to content

Commit

Permalink
test minify css
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcomac committed Jul 5, 2024
1 parent 6f50e61 commit 8f8cdbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
# Build Release
- name: Generate release
run: npm run release
- name: List release directory contents
run: ls -la /home/runner/work/household/household/release/

# Substitute Manifest and Download Links For Versioned Ones
- name: Substitute Manifest and Download Links For Versioned Ones
Expand All @@ -39,6 +37,8 @@ jobs:
manifest: https://github.com/${{github.repository}}/releases/latest/download/system.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip

- name: Minify Action
uses: anthonyftwang/[email protected]
# Create a zip file with all files required by the system to add to the release
- run: cd release && zip -r ./system.zip system.json template.json readme.md LICENSE.txt assets/ build/ fonts/ lang/ templates/ packs/ readme/ styles/

Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
preset: 'default',
})
],
extract: 'styles/household.min.css', // Extrai e minifica o CSS para um arquivo separado
extract: path.resolve('css', 'household.min.css'), // Extrai e minifica o CSS para um arquivo separado
minimize: true, // Enable minification
})
]
Expand Down

0 comments on commit 8f8cdbb

Please sign in to comment.