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 · 5 comments

Comments

Projects
None yet
3 participants
@ascooper57
Copy link

commented Oct 3, 2018

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 EINazare added the npmjs bug label Oct 4, 2018

@EINazare

This comment has been minimized.

Copy link
Collaborator

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

This comment has been minimized.

Copy link

commented Feb 25, 2019

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

@EINazare

This comment has been minimized.

Copy link
Collaborator

commented Feb 25, 2019

Hello there @YuhanLee ,

Please read my last comment.

Best,
Manu

@YuhanLee

This comment has been minimized.

Copy link

commented Feb 25, 2019

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

This comment has been minimized.

Copy link
Collaborator

commented Feb 25, 2019

Hello again @YuhanLee ,

In the "scripts" object inside package.json.

Hope this helps.

Best,
Manu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.