Skip to content

Repository files navigation

webpack-umd-module

  1. install the npm dependencies:
npm install
  1. run the webpack server:
npm start
  1. access the index.html file index.html

  2. create in the console new TestService object and check its methods and properties:

var obj = new TestService();
console.log(obj.testProp); // 27
obj.showTest('NEW value'); // This is a public test method. The parameter value is:  NEW value

About

webpack demo how to generate an umd module

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors