compiled icon indicating copy to clipboard operation
compiled copied to clipboard

Add configurable options to optimise CSS

Open pancaspe87 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. At current Compiled applies additional plugins) to optimise CSS based on the value of process.env.NODE_ENV . However, if the variable is undefined in one of the environment this could cause a mismatch between server and browser if they have different configuration when stylesheet extraction is enabled.

For example, given margin-top: 32px; this will become margin-top: 2pc; in production mode. Because of these different CSS values, Compiled will generate different CSS classes and cause browser/server not to be on sync

pancaspe87 avatar Jul 14 '22 00:07 pancaspe87