1
Hello, I have the following problem:
When rotating the command stylus main.styl main.css -w
the stylus
compiles what is saved, that is, it takes what is in the files styl/title.styl
and styl/button.syl
and play for the archive main.css
in normal css form.
But when I edit and save again one of the files in the folder styl
the stylus
cleans everything in the main.css
and leaves the file blank.
And on the console keeps firing the message: compiled main.css
countless times.
My code:
main styl.:
@import "styl/*"
styl/title.styl:
h1
background-color black
color red
styl/button.styl:
button
background-color blue
color red
width 150px
height 100px
Test use the flag
-o
specifies that the next file is compiled. Thus:stylus -w main.styl -o main.css
– Sergio
Worked perfectly man, thanks
– Jonathan Machado