XF 2.2 How can i customize build.json?

RisteDimitrievski

Active member
when i hit xf-addon:build-release i see nothing about build.json which i need to set up my javascript files there.

Are something changed ? since i saw the documentation and i can't figure out how i can put my javascript files in my addon ?
 
You just create the build.json file in your add-on directory. The documentation explains the various options.

To include JS, you'd typically put the JS in a _files/js/your-vendor/your-addon/ sub-directory and include the following in your build.json:

JSON:
{ 
    "additional_files": [ 
        "js/", 
    ], 
    "minify": "*" 
}
 
Top Bottom