mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #297] Problem on build dist with webpack #186
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chklang on GitHub (Sep 14, 2016).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/297
Hi
I've used the yeoman generator fountainjs, and this generator has configured for me the excellentissime webpack. But if i use it in dist mode with flag-icon-css i have this bug :
And i've found why : flag-icon-css not implement the "main" property into package.json. So if i add :
"main":"index.js"into package.json and i create a file index.js with this content :
So build is OK.
Can you add it in your future version?
Regards.
@lipis commented on GitHub (Sep 18, 2016):
Haven't played with Webpack but can we add the stylesheets files like in Bower? Because this project is not a JS project to add an
index.js@Chklang commented on GitHub (Sep 23, 2016):
The index.js is only to specify files to import on the application. So it's not a JS file used for execution but only for compilation. After i don't know if it's possible to import only css, i've seen the project bootstrap-css to understand it : https://github.com/StevenIseki/bootstrap-css/blob/master/index.js .