sheerun / bower-away

A tool for migrating away from Bower (to Yarn)
307 stars 21 forks source link

Why we should not use Bower but Yarn, while both download different codes for the same package? #16

Open notalentgeek opened 7 years ago

notalentgeek commented 7 years ago

For example:

yarn add babel
bower install babel

I have application running without server (I don't plan to use NodeJS as my back-end). It is now pure-front-end double-click HTML file.

I tried to import browser.js into my HTML file to be able to process JSX.

I do not want to download JavaScript manually from CDN. Because with Bower, it was not even a thing to do.

Apparently, the codes are different. Since, Bower is dead and it suggests its users to use Yarn, how can the codes be different?

How can I use Yarn like I use Bower?

sheerun commented 7 years ago

You need to use webpack to bundle your code

On Sun, 29 Oct 2017 at 09:09, Mikael Kristyawicaksono < notifications@github.com> wrote:

For example:

yarn add babel bower install babel

I have application running without server (I don't plan to use NodeJS as my back-end). It is now pure-front-end double-click HTML file.

I tried to import browser.js into my HTML file to be able to process JSX.

  • Import with Githubissues.
  • Githubissues is a development platform for aggregating issues.