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

'data-uri' cause error in less-loader when require('kuma.less') #1

Closed
macisi opened this issue Jul 13, 2015 · 2 comments
Closed

'data-uri' cause error in less-loader when require('kuma.less') #1

macisi opened this issue Jul 13, 2015 · 2 comments
Assignees

Comments

@macisi
Copy link
Contributor

macisi commented Jul 13, 2015

check this

ERROR in ./~/css-loader!./~/less-loader!./style/kuma/src/less/kuma.less
Module build failed: error evaluating function `data-uri`: Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!
 @ /Users/vincent/uxcore/uxcore-dialog/style/kuma/src/less/checkbox.less (line 21, column 22)
 near lines:
       height: @checkbox-wh;
       background-image: data-uri("./svg/blue/radio-normal.svg");
   }
 @ ./style/kuma/src/less/kuma.less 4:14-133
@macisi macisi self-assigned this Jul 13, 2015
@macisi
Copy link
Contributor Author

macisi commented Aug 22, 2015

相关 link

@macisi
Copy link
Contributor Author

macisi commented Aug 22, 2015

解决方案:

  1. 组件调试,直接import 'style/kuma/src/less/kuma-webpack.less'
  2. 打包方案不变,grunt打包的还是kuma.less

@macisi macisi closed this as completed Aug 22, 2015
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

1 participant