cngu / vue-typer

Vue component that simulates a user typing, selecting, and erasing text.
https://cngu.github.io/vue-typer
MIT License
791 stars 51 forks source link

Publish .vue files to NPM #31

Open milewski opened 6 years ago

milewski commented 6 years ago

Hello can you please dont compile the distribution on NPM.... or at least ship the .vue files together, as one using this package will not be able to do any sort optimization on your shipped code!... like extract the css out... remove your duplicated webpack runtime code... etc...

you can archive multiple targets by setting it into the package.json:

{
"main": "src/vue-typer/components/VueTyper.vue",
"browser: 'dist/thecurrentversion.js'
}

im facing a issue where i am precompiling my vue apps but due this component being already pre-compiled i can not extract your styles to a separated file nor remove the webpack boilerplate that it contains..

milewski commented 6 years ago

as a work around meanwhile this issue is not addressed, i have forked this repo and made the necessary changes for it to work along with someone else build tools...

https://github.com/milewski/vue-typer

note that i removed the dependency on pug, but not on sass cuz is very likely user might be using it anyways.. but in a perfect world scenario this should be all plain css, plain html, plain javascript.

installation can be done trough: npm install https://github.com/milewski/vue-typer