blow-up along non-pure dimensional subvarieties

When speaking about blow-ups, I've seen that everybody says "let $Y \subset X$ be a smooth closed subvariety of codimension $r$..."

What happens when one want to blow-up subvarieties which are not of pure dimension?

You can always decompose $Y$ into a union of pure dimension subvarieties and blow-up them successively. Does the order matter? Or the assumption of $Y$ being smooth mean that these components cannot intersect?

-

Blowing up commutes with passing to open sets in $X$. Therefore, if two components don't intersect the blowups commute. And yes, $Y$ smooth would imply the components are smooth and don't intersect. (According to some authors "smooth" should also imply that $Y$ is of pure dimension!)
Even if $Y$ is of pure dimension, but has intersecting components, the order can matter. Consider the parable of the orthant $\mathbb R_+^3$. If we use a planing device to shave off edge #1, then (less of) what remains of edge #2, we get a combinatorially inequivalent polyhedron than if we do #2 first, then #1. This polytopal picture illustrates (via the toric variety dictionary) what happens if we blow up one coordinate line, then the proper transform of another, in $\mathbb A^3$.