Comcast / Comcast/patternlab-edition-node-webpack
Change `from` pattern for copying font files
- Ngôn ngữ chính
- JavaScript
- Star
- 128
- Fork
- 92
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Current situation:** [Line 77 of the Webpack configuration](https://github.com/Comcast/patternlab-edition-node-webpack/blob/93d87fc5d1ce09d24aa8a85e7aeef87a445ec816/webpack.config.babel.js#L77) defines the glob pattern for copying fonts from the `source` to the `public` folder. The pattern is currently defined as `./*`.
**Proposed improvement:** I would like to update this pattern to `./**/*.*`, as is already the case for images, so that font files which are located in their own subfolders also match the pattern. In my experience, this is frequently the case and changing the pattern would save others the time I spent last Friday trying to debug why my fonts are not being copied over. 😅
I'm happy to open a pull request if you consider this a desirable improvement.
Hướng dẫn đóng góp
Hướng nghiên cứu
Open webpack.config.babel.js and inspect line 77, then compare the font-copy pattern with the image-copy pattern. Verify that the completed change matches font files in nested source subfolders and copies them into the corresponding public location.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js, webpack
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 35/100