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.
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".
...and that's it, if you're not doing anything really weird.