dojo / cli-build-widget

Command for building Dojo widgets
Other
6 stars 17 forks source link

Build pulls in Dojo theme font files with bogus absolute paths #63

Closed robagar closed 5 years ago

robagar commented 5 years ago

If a widget built with dojo build --target lib uses the Dojo Select widget, the build pulls in font files from the Dojo theme CSS, adding them to the output with bogus absolute paths.

These files should not be pulled in at all, as nothing in the source or output references them.

Example output:

$ dojo build widget --target lib

ℹ cli-build-widget: 1.0.0
ℹ typescript: 3.4.5
✔ hash: f509775dccfa74b71f49
✖ errors: 0
⚠ warnings: 0

chunks:

assets:
augmentedvideo/AugmentedVideo.d.ts (1.14kb)
augmentedvideo/AugmentedVideo.mjs (3.95kb)
augmentedvideo/AugmentedVideo.mjs.map (8.03kb)
augmentedvideo/Overlay.d.ts (0.17kb)
augmentedvideo/Overlay.mjs (0.06kb)
augmentedvideo/Overlay.mjs.map (0.56kb)
augmentedvideo/augmentedVideo.m.css (0.18kb)
augmentedvideo/augmentedVideo.m.css.d.ts (0.06kb)
augmentedvideo/augmentedVideo.m.css.js (0.16kb)
augmentedvideo/augmentedVideo.m.css.map (0.38kb)
augmentedvideooptions/AugmentedVideoOptions.d.ts (0.78kb)
augmentedvideooptions/AugmentedVideoOptions.mjs (2.08kb)
augmentedvideooptions/AugmentedVideoOptions.mjs.map (4.16kb)
augmentedvideooptions/augmentedVideoOptions.m.css (0.12kb)
augmentedvideooptions/augmentedVideoOptions.m.css.d.ts (0.14kb)
augmentedvideooptions/augmentedVideoOptions.m.css.js (0.33kb)
augmentedvideooptions/augmentedVideoOptions.m.css.map (0.34kb)
home/rob/repos/user_interfaces/widgets/ea_dojo_video/node_modules/@dojo/widgets/theme/fonts/dojo2.svg (15.75kb)
home/rob/repos/user_interfaces/widgets/ea_dojo_video/node_modules/@dojo/widgets/theme/fonts/dojo2.ttf (5.04kb)
home/rob/repos/user_interfaces/widgets/ea_dojo_video/node_modules/@dojo/widgets/theme/fonts/dojo2.woff (5.11kb)
output at: file:////home/rob/repos/user_interfaces/widgets/ea_dojo_video/output/dist

The build completed successfully.