Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
547e190f
Commit
547e190f
authored
Oct 11, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added minify when compile css => now with this css works
parent
e1f86183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
uitwww/main.py
uitwww/main.py
+4
-2
No files found.
uitwww/main.py
View file @
547e190f
...
...
@@ -19,9 +19,11 @@ import os
import
click
import
uitwww
from
scss.compiler
import
compile_file
from
htmlmin
import
minify
from
.constants
import
UITWWW_DIR
,
BASE_DIR
from
.utils
import
ReverseProxied
,
GunicornInstance
from
scss.compiler
import
compile_file
@
click
.
group
()
...
...
@@ -90,4 +92,4 @@ def build_scss():
print
(
"Compile the scss file"
)
path
=
f"
{
BASE_DIR
}
/assets/scss/www.scss"
with
open
(
f"
{
BASE_DIR
}
/uitwww/static/website.css"
,
"w"
)
as
fn
:
fn
.
write
(
compile_file
(
path
))
fn
.
write
(
minify
(
compile_file
(
path
)
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment