-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with *.vue #6762
Comments
How to add a new FileExtensionContentTypeProvider in OC project? |
@jaliao Are you using Vue CLI? |
Unknown file types are not served by default in ASP.NET. We should document how to configure the static file provider (@jtkech can you provide an example?), either to accept all files (ServerUnknownFileTypes) or by adding a custom mime type mapping. |
@sebastienros i will look at it asap |
First you would need a custom
Look at this source code to see how to do your custom mapping Then at the app level so that it is related to all static files providers
Or still from the app but at the tenant level so that it is not related to the app level static files but e.g. to the static files embedded in modules. Notice the negative order so that the options are configured before the tenant uses it.
Finally the same can be done in a custom module, e.g. when a feature is enabled, in that case your module main startup, or the one that is tied to a given feature, would need to override the |
thank you : ) |
|
Maybe you could modify the Gulp pipeline to compile these like we compile assets ? |
I have a project using xxx.vue.
I put the xxx.vue under the folder named wwwroot
But it return 404 from liquid file when I browse this file using Chrome.
the other static file is correct return.
How to config static file list in Orchard Core.
thanks
Justin
The text was updated successfully, but these errors were encountered: