Skip to content

Instantly share code, notes, and snippets.

@joelmiguelvalente
Last active December 21, 2022 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelmiguelvalente/e54865f8093bbda5198f66133eacb74c to your computer and use it in GitHub Desktop.
Save joelmiguelvalente/e54865f8093bbda5198f66133eacb74c to your computer and use it in GitHub Desktop.
Archivo de configuracion
{
"cdn": [],
"theme_js": [],
"theme_css": []
}
@joelmiguelvalente
Copy link
Author

joelmiguelvalente commented Dec 17, 2022

Para "cdn"

Se tiene que usar un objeto de esta manera
"name": LIBRERIA_A_USAR
"version": VERSION_LIBRERIA
"file": ARCHIVO_LIBRERIA

Ejemplo:

"cdn": [
  { "name": "jquery", "version": "3.6.0", "file": "jquery.min.js" }
],

Para "theme_js"

Se tiene que usar un arreglo de esta manera, para seleccionar el archivo con el mismo nombre de la página solo debes agregar @pagina, no hace falta mencionar todos los archivos ya que algunos son necesarios y obligatorios

Ejemplo:

"theme_js": [
  "archivo_1", "archivo_2", "@pagina", etc...
],

Para "theme_css"

Se tiene que usar un arreglo de esta manera, para seleccionar el archivo con el mismo nombre de la página solo debes agregar @pagina

Ejemplo:

"theme_css": [
  "archivo_1", "archivo_2", "@pagina", etc...
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment