Jelajahi Sumber

A few fixed found when create new project.

cixo 6 bulan lalu
induk
melakukan
551272cc68
2 mengubah file dengan 12 tambahan dan 12 penghapusan
  1. 9 9
      __init__.py
  2. 3 3
      compiler.py

+ 9 - 9
__init__.py

@@ -1,9 +1,9 @@
-from dom import tag
-from dom import link
-from dom import style
-from dom import script 
-from render import render
-from compiler import compiler 
-from compiler import compiler 
-from compiler import sass_compiler 
-from compiler import esbuild_compiler 
+from .dom import tag
+from .dom import link
+from .dom import style
+from .dom import script 
+from .render import render
+from .compiler import compiler 
+from .compiler import compiler 
+from .compiler import sass_compiler 
+from .compiler import esbuild_compiler 

+ 3 - 3
compiler.py

@@ -52,7 +52,7 @@ class compiler:
         if returned.returncode == 0:
             return
 
-        failed = result.stdout.decode("UTF-8") 
+        failed = returned.stdout.decode("UTF-8") 
         failed = failed + returned.stderr.decode("UTF-8")
 
         self._error(failed)
@@ -106,8 +106,8 @@ class sass_compiler(compiler):
 
         return [
             "sass",
-            "--sourcemap=none",
-            "-t compressed",
+            "--no-source-map",
+            "--style=compressed",
             str(source),
             str(result)
         ]