Skip to content

vyasriday/webpack-js-library

Repository files navigation

Webpack Set Up For Writing Your Own JavaScript Library

How to Make the Project Work

1. Clone the repository

2. npm install

3. npm run build

There is a index.js generated inside dist directory. Add it as an external script to any of your projects. Any method can be accessed on $ in in your code after embedding the bundled file.

For example you can use $.capitalize in your javascript to use capitalize method

The babelrc is used by jest for code transpilation.

About

webpack setup for writing a javascript library and making it availabe as scirt or npm package

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published