News for hackers. Stuff that matters.
Re:Vue.js: the good, the meh, and the ugly by sharpercoder on Thursday July 05, 2018 @05:05PM (#17466844)
One particular weak point of Vue is it's dependency on build tools. I spend a few days buiding a great app, and then another few days on getting the build apps configured right with Vue. You google from one error message to another, where each message is unclear and no relation to any build tool/plugin/library/script is made.

I really like Vue for the many great strong points it offers. But I'm equally ready to completely ditch Vue for its complete and utter garbage with respect to build/debug configuration.

Re:Vue.js: the good, the meh, and the ugly by zmmmmm on Thursday July 05, 2018 @05:54PM (#17467191)
Such a strange comment to read ... quite literally, the reason I first started using Vue over other frameworks was I wanted to put it into legacy apps and did not want to use a build tool. It's one script tag. Not in a half lying way like people say about React, for real. It falls down if you start throwing in components and libraries that presume webpack based setups (which is annoying), but Vue itself is completely and trivially usable with zero build step.
Re:Vue.js: the good, the meh, and the ugly by k__ on Thursday July 05, 2018 @06:23PM (#17467372)
Such a strange comment to read ... literally, the reason Facebook first started creating React was they wanted to put it into legacy apps. :D
Re:Vue.js: the good, the meh, and the ugly by mlevental on Thursday July 05, 2018 @05:12PM (#17466887)
literally in their docs they have you <script src> into a plain HTML file to get started. and it's not like react doesn't the same issue - hell CRA had to be built.
Re:Vue.js: the good, the meh, and the ugly by shakna on Thursday July 05, 2018 @06:13PM (#17467310)
Version with debug enabled:

     <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
Production version:

    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
If you need something more complex, vue-cli has webpack inbuilt:

    vue init webpack my-project
    cd my-project
    npm install
    npm run dev
Or if you need webpack, but not the complexity, swap the word 'webpack' in the above command to 'webpack-simple'.

... Vue has already done the hard work of getting the build apps configured for you.

Re:Vue.js: the good, the meh, and the ugly by The_suffocated on Friday July 06, 2018 @10:55AM (#17471898)
I don't follow. How to use Vue's single-file component if you only load Vue from a script tag? And can I use Brunch instead of Webpack if I want to use single-file components?
Re:Vue.js: the good, the meh, and the ugly by crazyideaman on Friday July 06, 2018 @02:35PM (#17474000)
Vue's single file components (SFC) require a build tool such as Webpack or Browserify. See https://vuejs.org/v2/guide/single-file-components.html
Re:Vue.js: the good, the meh, and the ugly by shakna on Friday July 06, 2018 @05:56PM (#17475443)
> And can I use Brunch instead of Webpack if I want to use single-file components?

Probably, but Vue only officially supports Webpack or Browserify.

Re:Vue.js: the good, the meh, and the ugly by baby on Friday July 06, 2018 @07:56AM (#17470655)
Vue also has a graphic interface now, try `vue ui`
Re:Vue.js: the good, the meh, and the ugly by keithnz on Thursday July 05, 2018 @05:36PM (#17467044)
this is really weird, not sure what you are doing...... one of the nice things about vue is it's super easy to just add to any page, I've done that a lot with transitioning pages from a mish mash of javascript to vue embedded on the page.
Re:Vue.js: the good, the meh, and the ugly by terenceng2010 on Thursday July 05, 2018 @07:17PM (#17467691)
One time I have to maintain my own version of a vue plugin because it uses es6 syntax and I am not able to use it in no build process vue setup. Afterwards i switch to use vue cli.
Re:Vue.js: the good, the meh, and the ugly by amelius on Thursday July 05, 2018 @05:37PM (#17467049)
My experience as well.