Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a .vue file to generate an Html and CSS file with an input model #465

Closed
marclave opened this issue May 17, 2017 · 1 comment
Closed

Comments

@marclave
Copy link

marclave commented May 17, 2017

What problem does this feature solve?

A vue component of mine, when applied a certain model generates certain HTML/CSS. Is there any CLI for extracting the output HTML/CSS into seperate entities? Currently I duplicate the Vue file with my own node templating generation.

What does the proposed API look like?

Some CLI that lets you pass in a model and a Vue component, which outputs the html/css file appropriate to the input model.

@posva
Copy link
Member

posva commented Jul 11, 2017

vue build allows you to generate the css, js and html for a component. There's no cli for extracting the HTML and CSS parts of a vue component but you can use any HTML parser to extract the content of the component

@posva posva closed this as completed Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants