vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
343 stars 52 forks source link

Feature request for html minify option #12

Closed sapics closed 9 years ago

sapics commented 9 years ago

@yyx990803 Thank you for your great vue compiler! I love .vue file system, it is very useful! I have a request for additional feature about html minify.

Now, the compiler use html-minifier without minify option. Therefore, when I used normal html template, builded html inside javascript is not minified.

From this PR and add minify attribute to template tag like <template minify='{"collapseWhitespace":true, "removeComments":true}'> makes html minified. If the attribution name minify is bad name, please tell me better attribution name. (html-minify or html-minify-option is better?)

Sorry, about my bad English.

sapics commented 9 years ago

Sorry, this feature is possible with Registering Custom Pre-Processors.