-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Option for default TypeScript source. #144
Comments
I don't really know Vue so excuse the dumb question: is this idiomatic Vue? Sounds slightly custom? |
I dont know if its "idiomatic" for TypeScript + Vue With vue-cli 3, TypeScript is build-in. But So now, to speparate .ts/.vue/.scss files, we need to put those empty Maybe i didn't find the right option yet, i try to keep the config as minimal as possible so upgrading projects will be simple. (The purpose of the cli) I almost done with VueProgram. Its not working without that <script> tag. Something depends on it somewhere!! Ill definatelly search if i missed something somewhere. |
OK i was definatelly searching at the wrong place. I would have liked a no config change and working but oh well, thanks. |
Hello,
Using vue-cli 3, I want to add an option for the VueProgram.js that when it does not find <script> tag, try to get a default option object on the Plugin. Like:
in VueProgram pass the file name to resolve.
resolveScriptBlock could then run through keys, use it as "lang" parameter, and value, use it as extention to the same fileName as the
MyFile.vue
No longer ignore invalid file
Continue with same process after this.
Pretty simple, a new option so no regressions and it would allow us remove the boiler plate <script> tag for every vue files.
I can try to PR if you want i already have the code.
But it seems i loose debugger with vue-cli 3. Also there is a clear console somewhere, so console log is not the best.
I need to find a way to access the Option inside VueProgram, thats the only thing left.
And then do the same thing for scss :)
The text was updated successfully, but these errors were encountered: