Javascript
Vanguard features a single, simple JavaScript file. The source file is located at [vanguard-project-directory/src/js/app.js], and a compressed version is created at [vanguard-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
-
vanguard-project-directory
-
assets
-
js
- app.min.js // compresed version javascript.
-
js
-
src
-
js
- app.js // javascript source files.
-
js
-
assets
For customization
-
Minified .js File: You can customize the minified .js file in
[vanguard-project-directory/assets/js/]if you do not plan to usegulpautomation again. Ensure you've completed steps from the Getting Started page up to running thegulpcommand.
Avoid runninggulpafter customization, as it will overwrite changes. -
Javascript Source Files: The recommended method is to customize the JavaScript source files in
[vanguard-project-directory/src/js/].
After customization, rungulpto automatically build a compressed version in[vanguard-project-directory/assets/js/].