Starts in:
1 DAY
21 HRS
32 MIN
55 SEC
Starts in:
1 D
21 H
32 M
55 S
Open Closed

how to enable static file changes(js, css etc.) runtime compilation for a Razor Class Library module #1726


User avatar
0
fishlong created

Hi guys,

I followed the instructions and enable razer page runtime compilation for RCL module. https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-5.0&tabs=visual-studio#enable-runtime-compilation-for-a-razor-class-library-1

but the static file(js, css) cannot work.

Can someone tell me the correct operation?

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You don't need to compile js and css. You can configure to use them directly during developmentin.

    https://docs.abp.io/en/abp/latest/Virtual-File-System#dealing-with-embedded-files-during-development

  • User Avatar
    0
    fishlong created

    hi

    You don't need to compile js and css. You can configure to use them directly during developmentin.

    https://docs.abp.io/en/abp/latest/Virtual-File-System#dealing-with-embedded-files-during-development

    The js file is in a separate module project, the modular Web project outputs a packaged dll file. If the JS file is modified during development, the JS file in the DLL will not be changed synchronously.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can use your physical file to replace the file in the dll in the virtual file system.

    https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.VirtualFileSystem/Volo/Abp/VirtualFileSystem/VirtualFileSetListExtensions.cs#L31

    https://github.com/abpframework/abp/blob/580497262fa71cb83709da62ae6163c1b4411d10/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs#L146

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06