egoist / vue-compile

Compile the blocks in Vue single-file components to use JS/CSS instead of Babel/Sass/Stylus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uglification

privatenumber opened this issue · comments

Very cool idea @egoist

This would make it a lot easier for Vue developers to publish components (a lot of the tooling out there seems to be more tailored for apps).

I'm interested in being able to produce an uglified SFC file.

This would make it a lot easier for Vue developers to publish components

Why do we need to uglify components?

Smaller distribution file

but that's a bad news for debugging?

And I don't see any advantages that smaller distribution file could bring us, maybe slightly faster npm install?

I felt we're past the debugging aspect since it's precompiled code but you're right. I thought about it some more and there isn't much of an advantage to uglification here I suppose.

Thanks for thinking about it!