Javascript

Entrada features a single, simple JavaScript file. The source file is located at [entrada-project-directory/src/js/app.js], and a compressed version is created at [entrada-project-directory/assets/js/app.min.js] after running the gulp command. The folder structure includes both the source and compressed JavaScript files.

Folder Structure
  • entrada-project-directory
    • assets
      • js
        • app.min.js // compresed version javascript.
    • src
      • js
        • app.js // javascript source files.
For customization
  • Minified .js File: You can customize the minified .js file in [entrada-project-directory/assets/js/] if you do not plan to use gulp automation again. Ensure you've completed steps from the Getting Started page up to running the gulp command.
    Avoid running gulp after customization, as it will overwrite changes.

  • Javascript Source Files: The recommended method is to customize the JavaScript source files in [entrada-project-directory/src/js/].
    After customization, run gulp to automatically build a compressed version in [entrada-project-directory/assets/js/].