LibraryManager icon indicating copy to clipboard operation
LibraryManager copied to clipboard

Same library with different files to different directories in lib doesn't seem to work

Open Devnsyde opened this issue 3 years ago • 5 comments

Functional impact

Setting up libman.json with the json that repeats libraries seems to only run one time

Minimal repro steps

  1. Add the following JSON to your libman.json file in libraries:
	{
	  "library": "[email protected]",
	  "files": [
		"ui-bootstrap-csp.css",
		"ui-bootstrap-csp.min.css"
	  ],
	  "destination": "wwwroot/lib/angular-ui-bootstrap/dist/css/"
	},
	{
	  "library": "[email protected]",
	  "files": [
		"ui-bootstrap.js",
		"ui-bootstrap.min.js",
		"ui-bootstrap-tpls.js",
		"ui-bootstrap-tpls.min.js"
	  ],
	  "destination": "wwwroot/lib/angular-ui-bootstrap/dist/js/"
	}

Expected result

The JS files should install to the JS directory and the CSS files should install to the CSS directory.

Actual result

The JS library setting is running and installing the JS files but the CSS library never installs.

Further technical details

The library that I'd like to install includes all its files in one directory which is not organized, I'd like to organize them in a way that is consistent with many other well-known libraries such as font-awesome, and bootstrap

Devnsyde avatar Aug 11 '20 22:08 Devnsyde

Related to https://github.com/aspnet/LibraryManager/issues/407, needs a way to specify the destination for individual files.

RobJohnston avatar Aug 21 '20 16:08 RobJohnston

Just ran into the exact same issue trying to put Bootstrap .scss files in a folder for pre-compilation and the .js into wwwroot. Only the last defined entry for a lib is executed.

alanta avatar Jul 11 '22 08:07 alanta

Same issue, trying to put fontawesome css/js files in their own folder, and the webfonts at the wwwroot level

jbarrineau06 avatar Aug 31 '22 17:08 jbarrineau06

Same issue. Need help with this. I want to have the font files from the formantic-ui client library to go in wwwroot/fonts and the js + css files to go in another directory outside of wwwroot to be handled by gulp tasks, but the last client library object specified in libman.json overrides the first object if the library is the same.

Mike-Logit avatar Mar 20 '24 13:03 Mike-Logit

Same issue. Need to split css and js files by different folders

dstepanov25 avatar Apr 03 '24 09:04 dstepanov25