Seems to copy files outside of basepath
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by reproducing the shown postcss-url configuration with url set to "copy", basePath pointing at node_modules, and assetsPath set to assets/images. Trace how basePath is applied when CSS references images, then verify that the behavior matches the intended source and destination paths described in the issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm seeing a strange result with the below config:
require('postcss-url')({
url: 'copy',
basePath: path.resolve('node_modules'),
assetsPath: 'assets/images'
useHash: true
}),
Upon debug, bathPath is evaluated (as expected) as project_root/node_modules.
Images are not being copied from project_root/node_modules/some_lib/an_image.gif as I want however it is only copying images referenced in CSS from project_root/css into project_root/dist/assets/images.
I.e. the basePath seems to do the opposite of what it should be doing. Can anyone please explain why it is doing this?
- Ngôn ngữ chính
- JavaScript
- Star
- 383
- Fork
- 58
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của postcss/postcss-url
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
postcss/postcss-url#183 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
postcss/postcss-url#182 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
postcss/postcss-url#181 · 1 reaction ·
-
postcss-import integrationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
postcss/postcss-url#180 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
postcss/postcss-url#179 ·
Tất cả issue của postcss/postcss-url
Issue tương tự
-
Add: Tooncast brazil feedĐang mởcheck:passed feeds:add
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
codex-team/editor.js#3037 ·
-
No Code Attached Yet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
joomla/joomla-cms#48626 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
complexity: trivial good first issue impact: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
ueberdosis/tiptap#8522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
internal os specific
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
frostney/GocciaScript#1688 ·
Maintainer thường phản hồi trong vòng 1 ngày