Choose one: is this a ๐ bug report or ๐ feature request?
"scripts": {
"start": "rimraf ./dist && parcel ./src/index.html",
"build": "rimraf ./dist && parcel build ./src/index.html"
},
"devDependencies": {
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"rimraf": "^2.6.2",
"stylus": "^0.54.5"
}
It's work
parcel ./src/index.html --no-cache
Server running at http://localhost:1234
โจ Built in 3.15s.
background-image: url("6ca929a9fe71b45e369a3d439a90e58e.");
not find this img file
css-loader.js:31 Uncaught (in promise) Error: Cannot find module '54cb5b99c362480e7d815a6feae6722f.png,20'
at newRequire (css-loader.js:31)
at newRequire (css-loader.js:22)
at localRequire (css-loader.js:31)
at css-loader.js:31
at <anonymous>
src
| -- index.html
| -- assets
| -- img.jpg
| -- common
| -- xxx.jpg
| -- xxx.jpg
| -- xxx.jpg
| -- style
| -- index.styl
| -- base.styl
| -- common
| -- xxx.styl
| -- xxx.styl
| -- xxx.styl
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./style/index.styl">
</head>
<body>
<script src="./script/index.js"></script>
</body>
</html>
@import "./base.styl"
// baseStyle
@import "./common/**"
.icon
width .28rem
height .26rem
background url('../../assets/common/icon-share.png') center no-repeat
background-size 100% 100%
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.5.1 |
| Node | v8.9.4 |
| npm/Yarn | npm 5.6.0 |
| Operating System | OS X |
me too having a similar issue.
Same error
@aicest Youโve done some work with Stylus before. Do you think you can try looking into this?
any progress on this? can we help?
@DakshMiglani Ya sure! Feel free to submit a PR ๐
Alright I'll check on that, also the same bug is with sass.
Most helpful comment
me too having a similar issue.