Closed thekid closed 1 year ago
Given the following package.json:
{ "dependencies": { "ol": "^7.1" }, "bundles": { "vendor": { "ol": "ol.css | dist/ol.js", "fonts://display=swap": "Overpass", ".": "src/main/js/lightbox.js | src/main/js/suggestions.js | src/main/js/mapping.js | src/main/js/theme.js" } } }
...we can now replace the line starting with . with the following:
.
".": "src/main/js/*.js"
.js
".": "src/main/js"
Released in https://github.com/xp-forge/frontend/releases/tag/v4.1.0
Given the following package.json:
...we can now replace the line starting with
.
with the following:".": "src/main/js/*.js"
- bundle all files ending in.js
, see https://www.php.net/glob".": "src/main/js"
- bundle all files in this directory