Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS里面引入的图片路径出错了,求怎么改配置解决这个问题 #1183

Closed
470269559 opened this issue Oct 10, 2018 · 3 comments

Comments

@470269559
Copy link

我找了网上,但是发现网上的解决方案不是这个版本的脚手架

@PanJiaChen
Copy link
Owner

#1164

@470269559
Copy link
Author

470269559 commented Oct 10, 2018

{
        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
        loader: 'url-loader',
        exclude: [resolve('src/icons')],
        options: {
          limit: 10000,
          publicPath:'../../',
          name: utils.assetsPath('img/[name].[hash:7].[ext]')
        }
      }

这样也可以

@470269559
Copy link
Author

同样,如果奥森字体引入发生问题,也可以这样解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants