Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assets/img and assets/css folders and files missing after npm run build-package #69

Closed
ascooper57 opened this issue Oct 3, 2018 · 7 comments

Comments

@ascooper57
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ 1.5.0] I am running the latest version
  • [ Y] I checked the documentation and found no answer
  • [ Y] I checked to make sure that this issue has not already been filed
  • [ Y] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Please describe the behavior you are expecting

Dashboard.js, index.js and UserProfile.js references files in dist/assets/img or css but they these folders are missing:

Current Behavior

What is the current behavior?

Only the dist/assets/jss folder is present

@einazare
Copy link
Contributor

einazare commented Oct 4, 2018

Hello again @ascooper57 ,

The build-package was used by us so that we can create a package out of this product.
Yes, it is strange that it does not output the css files as well.
To solve the issue, replace that script with these two:

"build-package-css": "cp src/assets/css/material-dashboard-react.css dist/material-dashboard-react.css",
"build-package": "npm run build-package-css && babel src --out-dir dist"

Best,
Manu

@YuhanLee
Copy link

Hello! I was wondering if there is a solution to this issue?

@einazare
Copy link
Contributor

Hello there @YuhanLee ,

Please read my last comment.

Best,
Manu

@YuhanLee
Copy link

I was wondering where to change those two lines? I inspected the package.json from this library, but those two scripts are present.
Thank you,

Yuhan

@einazare
Copy link
Contributor

Hello again @YuhanLee ,

In the "scripts" object inside package.json.

Hope this helps.

Best,
Manu

@scottsawyer
Copy link

Fixed by using bower

@oluizcunha
Copy link

Fixed by using bower

Explain better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants