Start your own JavaScript library using webpack and ES6

转载地址:http://krasimirtsonev.com/blog/article/javascript-library-starter-using-webpack-es6


Two months ago I published a starter pack for React based on webpack. Today I found out that I need almost the same thing but without the React bit. This simplifies the setup but there are still some tricky parts. So, I made a brand new repository webpack-library-starter and placed all the stuff that we need for creating a JavaScript library.

First of all, what I meant by saying “library”

My definition for library in the context of JavaScript is a piece of code that provides specific functionality. It does one thing and it is doing it well. In the ideal case should not depend on another library or framework. A good example for library is jQuery. React and Vue.js could be also considered a library.

The library should:

  • Be available for in-browser use. Understand including the library via 

你可能感兴趣的:(前端学习笔记)