ProposeJS: JS common Data

Defining JS Common Data

JS Common Data executes on a particular directory. To define JS common data, follow the steps below:

1. Create a JS File

Create a JS file to store JS common data:

/article/common.jsconsole.log("Hello ProposeJS");

2. Update the propose.json File

Make a proposal for JS common data in the propose.json file:

/propose.json{
    "js": {
    "common": {
      "/article": ["/article/common.js"]
       }
     }
 }    

Note