How do I build a webpack project from source?

*in reference to this github link

When you clone this repository, it has a variety of webpack files in it. How do I build this extension with webpack? I tried looking this up, but all I found was how to use webpack as a build tool or something.

Hey @CarlyRaeJepsenStan! Looks like its a yarn project have you tried running any of the scripts in the package.json, maybe yarn run build?

2 Likes

And don’t forget to install yarn

If you are using Glitch:

npm install yarn

If not:

npm install yarn -g
2 Likes

After installing yarn and before running any scripts, make sure to install dependencies using yarn install (or just simply run yarn) :slightly_smiling_face:

1 Like

And looking at the package.json scripts, running yarn run dev should start a Webpack development server and as @mxpy has suggested, running yarn run build will build the files for production.

2 Likes

Thanks guys! I’m trying some of this stuff right now

2 Likes

Problem - I deleted node. Lol. I installed it via homebrew instead.

2 Likes