【问题标题】:How to properly make a production build in NextJS?如何在 NextJS 中正确地进行生产构建?
【发布时间】:2021-03-13 00:56:40
【问题描述】:

我在 NextJS 中构建我的应用程序的生产版本时遇到此错误。我在我的应用程序的开发版本中没有看到此错误。

这是错误。

这是这个错误指向的我的css代码。

.seller_main_fourth{
   padding: 50px;
   min-height: 600px;
   margin-bottom: 30px;
   background: url(https://m.media-amazon.com/images/G/01/sell/images/bg/illustration-pf-home- 
      2x._CB441100178_.png) center right/700px no-repeat, url(https://m.media- 
      amazon.com/images/G/01/sell/images/illustration/pf-wave-horizon-1.svg) top left/cover no- 
      repeat;
}

我们将不胜感激。

【问题讨论】:

  • 你试过用引号(“)包装网址吗?
  • @GautamNaik 很好地用引号括起来。你可以用它写一个答案。

标签: css webpack next.js


【解决方案1】:

尝试用引号括起图片网址

.seller_main_fourth-edited {
  padding: 50px;
  min-height: 600px;
  margin-bottom: 30px;
  background: url("https://m.media-amazon.com/images/G/01/sell/images/bg/illustration-pf-home-2x._CB441100178_.png") center right/700px no-repeat, url("https://m.media-amazon.com/images/G/01/sell/images/illustration/pf-wave-horizon-1.svg") top left/cover no-repeat;
}
<div class="seller_main_fourth-edited">

</div>

【讨论】:

    猜你喜欢
    • 2020-10-17
    • 2021-01-13
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 2020-10-04
    • 2021-04-15
    • 1970-01-01
    相关资源
    最近更新 更多