它在Visual Studio 2015上,因为web必备更新到2015.2版本,提供Bundle& amp; minifier支持捆绑和缩小。但是,bundleconfig.json中的设置适用于Javascript文件中的源映射,但是不提供对CSS的支持?也不要将SASS编译为源映射文件。我已经尝试了很多方法在css中添加源文件。任何人,请帮忙。
[
{
"outputFileName": "Styles/room-ready-bundle.css",
"inputFiles": [
"Content/styles/bootstrap-overwrite.css",
"Content/styles/controls.css",
"Content/styles/layout.css",
"Content/styles/home.css"
],
"sourceMap": true,
"mappings": "AAAAA,SAASA,kBAAmB,CAACC"
},
{
"sourceMap": true,
"outputFileName": "JavaScripts/test-bundle.js",
"inputFiles": [
"Scripts/jquery.slimscroll.min.js",
"Scripts/jquery.equalheights.min.js",
"Scripts/bootstrap-select.min.js",
"Scripts/Nav.js",
"Scripts/jquery.arrange.form.js",
"Scripts/jquery.time.popup.js"
]
}
]
答案 0 :(得分:0)