Meteor-Community-Packages / meteor-postcss

PostCSS for Meteor

Home Page:https://packosphere.com/juliancwirko/postcss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors stop the whole app

m-pokrovskii opened this issue · comments

If something cause an error, it's stops the whole app. Only restart meteor help.

could you provide more information ?

Install simple vars plugin. Use some variable, but not define it. It drops an error, and meteor app not refreshing anymore.

Ok I think that I should provide better PostCSS errors catching there. I'll try to fix it today.

Ok you can update to version 0.2.4 and let me know if this help

On the server console you should now get something similar to my demo error:

=> Modified -- restarting.                    
=> Errors prevented startup:                  

   While minifying app stylesheet:
   app/client/postcss-demo.css:14:5: postcss-simple-vars: /home/jul/workspace/meteor/postcss-demo/client/postcss-demo.css:14:5: Undefined variable $column

   Css Syntax Error.

   postcss-simple-vars: /home/jul/workspace/meteor/postcss-demo/client/postcss-demo.css:14:5: Undefined variable $column
   t: translateX(10%);
   w: $column;
   ^
   text-align: right;

=> Your application has errors. Waiting for file change.

Then if you fix the error it should auto restart the Meteor server.

Also on the client when the app is stopped because of this error when you refresh the site you should get the same error in the browser.

It will be awesome ) thanks for your plugin.

On 23:52, Tue, Dec 8, 2015 Julian Ćwirko notifications@github.com wrote:

Ok you can update to version 0.2.4 and let me know if this help

On the server console you should now get something similar to my demo
error:

=> Modified -- restarting.
=> Errors prevented startup:

While minifying app stylesheet:
app/client/postcss-demo.css:14:5: postcss-simple-vars: /home/jul/workspace/meteor/postcss-demo/client/postcss-demo.css:14:5: Undefined variable $column

Css Syntax Error.

postcss-simple-vars: /home/jul/workspace/meteor/postcss-demo/client/postcss-demo.css:14:5: Undefined variable $column
t: translateX(10%);
w: $column;
^
text-align: right;

=> Your application has errors. Waiting for file change.

Then if you fix the error it should auto restart the Meteor server.

Also on the client when the app is stopped because of this error when you
refresh the site you should get the same error in the browser.


Reply to this email directly or view it on GitHub
#3 (comment)
.

@m-pokrovskii hey, let me know if this helped :)