2017-05-10 9 views
1

기본 템플릿을 기반으로 simpe ASP.NET 핵심 사이트를 구축했습니다. site.css가 업데이트되었으므로 site.min.css를 업데이트해야합니다.OS X에서 ASP.NET 코어의 축소 된 CSS 업데이트

이것은 Jetbrains Rider의 OS X에 있습니다. MSDN 문서에서는 Windows에서 간단히 프로젝트를 다시 빌드하면 축소 된 파일이 업데이트됩니다.

bundleconfig.json 파일은 변경되지 않습니다 :

// Configure bundling and minification for the project. 
// More info at https://go.microsoft.com/fwlink/?LinkId=808241 
[ 
    { 
    "outputFileName": "wwwroot/css/site.min.css", 
    // An array of relative input file paths. Globbing patterns supported 
    "inputFiles": [ 
     "wwwroot/css/site.css" 
    ] 
    }, 
    { 
    "outputFileName": "wwwroot/js/site.min.js", 
    "inputFiles": [ 
     "wwwroot/js/site.js" 
    ], 
    // Optionally specify minification options 
    "minify": { 
     "enabled": true, 
     "renameLocals": true 
    }, 
    // Optionally generate .map file 
    "sourceMap": false 
    } 
] 

가 어떻게이 축소 된 파일 (들)는 IDE 또는 CLI (명령 줄 인터페이스)에서 일을 업데이트 할 수 있습니다?

답변

2

죄송합니다. 나는 회의 준비를하고 있었다. 문제를 해결하려면 <PackageReference Include="BuildBundlerMinifier" Version="2.4.337" />을 csproj 파일에 추가하십시오. 그리고 번들 파일은 빌드 후에 업데이트됩니다.

+0

우수한 작동! 고맙습니다! –