Comments (8)
I've also run into this issue, the code looks like it has an option called opts.from
but I don't know how to pass that in to the postcss
CLI?
from cssgrace.
+1 Also having this problem
from cssgrace.
+1
from cssgrace.
I think this issue have been fixed in the new version 3.x, I changed the path resolve in the PR #39. Related code is here.
from cssgrace.
Resolved indeed.
from cssgrace.
Nope, sincerely not, now it uses the path from the source-file:
/ css
/ img
| image.png
/ src
/ scss
| style.scss
style.scss:
.foo {
background-image: url("../img/image.png");
}
Error: ENOENT: no such file or directory, open '/project/src/img/image.png'
from cssgrace.
@CinKon , your source file is located in src/scss
, and your built css is located in css
folder. And now the plugin resolved path is relative to the source file path, so there should have a img
folder under the src
folder. I know your situation, and I think you should use some assets rebase
plugins to handle this.
from cssgrace.
+1 如果地址是非本地地址会报错
from cssgrace.
Related Issues (20)
- HTTP urls break build HOT 11
- @media 嵌套支持 HOT 2
- ieOpacityHack not working with `postcss-nested` HOT 1
- Add settings HOT 3
- Add support :nth-child-range() selectors
- Conflict with any data:image in CSS HOT 1
- NPM Peer Dependency error HOT 4
- Support for CSS Gradients HOT 6
- sth is deprecated HOT 1
- [email protected] requires a peer of postcss@^4.0.0 but none was installed. (postcss 5) HOT 2
- 读取背景图片路径有问题 HOT 1
- SVG background-image support HOT 1
- 使用文档说明 HOT 1
- 多余的hack HOT 3
- 与autoprefixer共同使用引起报错 HOT 8
- Cannot read property \'replace\' of undefined\n at ieInlineBlockHack HOT 1
- 插件中包含swiper3版本时,执行cssgrace任务时报错
- Plugin Error: Cannot find module 'cssgrace',使用postcss.cmd报错
- background渐变linear-gradient
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssgrace.