At the same time, the request url: https://localhost:51859/js/Homepage.Footer.scripts.js?v=E1tT7OPHZGQE1JOdY6qnn3kx8zY run well. In the code path: nopCommerce\src\Presentation\Nop.Web\wwwroot\bundles
I can see a JavaScript file named: 'js'Homepage.Footer.scripts.js__E1tT7OPHZGQE1JOdY6qnn3kx8zY.cache
But in all of the solution, i can't find a css file named: Homepage.Head.styles.css
The problem is probably due to the using of NUglify V2.12.0. The error message in Nop.web.exe console shows: NopCssMinifier.cs:line 37 The code is
var result = Uglify.Css(input, new CssSettings());
it's going wrong when use Uglify to minify and compress the file nopCommerce\src\Presentation\Nop.Web\Themes\DefaultClean\Content\css\styles.css But here's the strange thing, I create a project to test the styles.css by use Uglify,it works well. Finally, I Comment the code:
var result = Uglify.Css(input, new CssSettings());
Check your setting in App Settings See https://yourwebsite.com/Admin/Setting/AppSettings > Bundling & minimization > Cache directory Cache directory is a valid location
Check your setting in App Settings See https://yourwebsite.com/Admin/Setting/AppSettings > Bundling & minimization > Cache directory Cache directory is a valid location
it works,thanks a lot! what trouble me is when first login the web in admin,the css makes no effort,so the page looks very disorderly and original,it's difficult for beginner to find the appsetting. I think i should read the document for developer one more time.
Thanks to Yidna!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Vous avez encore des questions ou avez besoin d'aide?