-
Notifications
You must be signed in to change notification settings - Fork 254
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
cli: dist/static does not include assets if Angular project is output to dist/ #56
Comments
Do you have a repo we can use for reproducing/debugging that? |
Not at this time. I can try to set one up in the next few days. Are you seeing the assets being properly available in your app? |
@Splaktar thanks for found the issue! ... @SanderElias can you check this? |
@Splaktar The first step we take in Scully, is to copy over all the files in the app's dist folder, including the assets that are there. I just double-checked, and it is doing that for me @jorgeucano Can you check my commit a38f810 and try it on your windows & mac? after running scully, the herodevs logo should be in |
I test the same in windows and work @Splaktar can you test again with the lastest version? |
Yeah, I tested after updating to 😄 new Angular build imported But I don't: scully
Cleaned up /Users/splaktar/Git/.../dist/static/ folder.
started servers in background
servers available
Finding all routes in application.
Pull in data to create additional routes.
Route list created in files:
src/assets/scully-routes.json
/Users/splaktar/Git/.../dist/static/assets/scully-routes.json
Route "" rendered into file: "/Users/splaktar/Git/.../dist/static/index.html"
Route list created in files:
src/assets/scully-routes.json
/Users/splaktar/Git/.../dist/static/assets/scully-routes.json
Generating took 6.11 seconds for 1 pages:
That is 0.17 pages per second,
or 6115 milliseconds for each page. |
$ ls dist/static/assets
scully-routes.json
$ ls dist/assets
AngularJS_square_588x588.png Maps_icon.png angular-cli.svg browserconfig.xml material-design-512x512.png safari-pinned-tab.svg
Logo.png android-chrome-192x192.png [email protected] favicon-16x16.png material-design-icons/ scully-routes.json
site_preview.png android-chrome-512x512.png angular-logo.png favicon-32x32.png mstile-150x150.png typescript.svg
Firebase_128px-logo.png android-icon-128px.png angular-material.svg font-awesome/ nodejs-icon-128.png
Google-Chrome-icon_256x256.png angular-cdk.svg angular-nativescript-icon.png google-cloud-logo-icon-128px.png nx-logo-blue-gradient-128x128.png |
I have been testing in another repo (https://github.com/Splaktar/test-blog) and I haven't been able to reproduce the issue so far. The only difference is that my app puts its output in |
ok, that's really important!! thanks @Splaktar !! |
OK, I changed my project to output to |
@SanderElias Scully should be able to check the architect->build->options->outputPath field in |
Yes, it is already doing that. But somehow it's not always pulling in all
assets, while it pull sin the rest of the app. Looking into that
Op vr 20 dec. 2019 om 17:02 schreef Michael Prentice <
[email protected]>:
… @SanderElias <https://github.com/SanderElias> Scully should be able to
check the build->options->outputPath field in angular.json in order to
find out where the application is output during the build.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AAJQ6OYKX2ZMSY57BREEMATQZTUADA5CNFSM4J452EY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHNJ4DI#issuecomment-567975437>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJQ6O2NPFYPEYYNNGRVCJDQZTUADANCNFSM4J452EYQ>
.
|
I also have the same issue and this workaround worked. |
@SanderElias is going to fix this. @SanderElias do you have a timeline? |
I looked into this.
|
@Villanuevand Perhaps we should leave this open until the docs for it can be updated? I don't see this documented anywhere just yet. |
…path in angular.json We will run into trouble when an user uses './dist` without subfolder. This PR does docuent that, and also make scully check, and throw en error when this is detected re #56
🐞 Bug report
Description
In dist/static, I have the following
My
webmanifest.manifest
,favicon.ico
,sitemap.xml
,robots.txt
, etc aren't available on my static site. It seems like all of this stuff is configured in theangular.json
and part of my build indist/
, so it seems like Scully should copy that over for the static site? Or is there some other step or approach that I'm missing?🔬 Minimal Reproduction
favicon.ico
loads on your static site and that it's indist/static/favicon.ico
💻Your Environment
Angular Version:
Scully Version:
🔥 Exception or Error
The text was updated successfully, but these errors were encountered: