ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
753 stars 113 forks source link

[Question] bundling content and web root files together #246

Closed mkalinski93 closed 1 year ago

mkalinski93 commented 2 years ago

Hello,

unfortunately, I was not able to find a solution for this question so I´m going to ask it right here.

I want to create a bundle with multiple files from the WebRoot and ContentRoot. We have several librarys from npm and some custom files which should be packed into a single output file.

for example: I have the route "vendor.css" and it should contain these two files: "node_modules/bootstrap/dist/css/bootstrap.css" + "css/site.css"

I´ve tried to create multiple bundles sharing the same route, but it gonna take the WebRoot content all the time.