News for hackers. Stuff that matters.
Re:Love letter to Vue by RpFLCL on Tuesday July 17, 2018 @02:50PM (#17552101)
I couldn't be more thrilled with vue.

Having learned with react, I think the component structure and updating are wonderful. But the baggage of the React ecosystem made it tedious to add to projects. What if I don't want to use webpack and npm and babel?

As this author notes, Vue just drops in and works.

I can use it in existing projects. I can use it in experiments. I can use it with my PHP projects. I can use it without a server to compile anything.

It's been a pleasant experience and the tools I've built with it have been refreshingly stable.

Re:Love letter to Vue by crooked-v on Tuesday July 17, 2018 @03:16PM (#17552296)
> What if I don't want to use webpack and npm and babel?

You may want to look at Parcel, which gets you most of the Babel/Webpack benefits (minification, ES6 syntax, using image files as imports in JS, etc) in a way that "just works".

    npm i --save-dev parcel-bundler
    npx parcel src/index.html    # where index.html has <script src="whatever.js"></script>
...and that's it, if you're not doing anything really weird.
Re:Love letter to Vue by woah on Tuesday July 17, 2018 @06:42PM (#17554152)
I’ve found parcel to be very buggy
Re:Love letter to Vue by oreganoz on Wednesday July 18, 2018 @10:23AM (#17558648)
> What if I don't want to use webpack and npm and babel?

You don't have to use those if you use React. It can be as simple as including a script tag in your HTML and be done with it.