c# - Bundle seems to happen after files are copied -
i trying deploy asp.net core web application.
at beginning of publish process, have 1 file under \wwwroot\css: main.css.
after publish process:
- in
\publishfolder, theremain.css - in
\wwwroot\cssfolder, theremain.css+main.min.css(thus minification works, command line message says*)
my .csproj seems correct:
<target name="prepublishscript" beforetargets="prepareforpublish"> <exec command="bower install --allow-root" /> <exec command="dotnet bundle" /> </target> <itemgroup> <none update="wwwroot\**\*"> <copytopublishdirectory>preservenewest</copytopublishdirectory> </none> </itemgroup> so thing seems possible in scenario bundling happening after files copied.
(*) command line message:
processing wwwroot/css/site.min.css minified
Comments
Post a Comment