Skip to content

redundant files in index.html, in dist folder #2262

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

Closed
1 task done
AmirGilboa opened this issue Sep 26, 2016 · 4 comments
Closed
1 task done

redundant files in index.html, in dist folder #2262

AmirGilboa opened this issue Sep 26, 2016 · 4 comments

Comments

@AmirGilboa
Copy link

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 3.7.3
Node 6.2.0
npm 3.9.2
Operating System Windows 10
etc etc
Item Answer
Transpiler Babel
Markup HTML
CSS CSS
Router ui-router
Client Tests Jasmine
DB MongoDB
Auth Y
etc etc

running 'grunt build' to build my project in order to deploy to production.
looking at dist/client/index.html, i see this:

<script src="app/vendor.e3eb5c5b.js"></script>
<!-- build:js(.tmp) app/app.js -->
  <script src="app/app.81b3a27d.js"></script>
  <!-- injector:js -->
  <script src="app/admin/admin.module.js"></script>
  <script src="components/auth/auth.module.js"></script>
  <script src="components/util/util.module.js"></script>
  <script src="app/account/settings/settings.controller.js"></script>
  <script src="app/account/signup/init.controller.js"></script>
  <script src="app/account/signup/signup.controller.js"></script>
  <script src="app/account/signup/userOnboard.controller.js"></script>

i understand files like app/vendor.e3eb5c5b.js (and they exist).
but the folder 'account' and all the controllers in it, just don't exist. they are compressed into app.81b3a27d.js, so why do i see them in my index.html? of course they will not be found.
maybe i should manually remove them?

same thing happens with css files. here is what i see in index.html (in dist folder!)

  <link rel="stylesheet" href="app/app.a17744da.css">
  <!-- injector:css -->
  <link rel="stylesheet" href="app/styles/myapp.css">
  <link rel="stylesheet" href="app/styles/upload.css">
  <!-- endinjector -->
<!-- endbuild -->

again, app.a17744da.css contains all the css needed.
myapp.css should not be there, and i don't even have the 'styles' folder in dist.

what am i doing wrong?
Thank you.

@Awk34
Copy link
Member

Awk34 commented Sep 26, 2016

Please see #370

@AmirGilboa
Copy link
Author

AmirGilboa commented Sep 26, 2016

thanks.
so he says there: "Make sure that your source HTML (e.g. index.html) does not mix linefeed styles (unix/windows)". great. But how do i know which one i have? i use sublime 3 on windows.
is there a way to change linefeed on a whole folder?

Thank you.

@Awk34
Copy link
Member

Awk34 commented Sep 26, 2016

You can search around the web for how to see if you are mixing them. I use the dos2unix program to convert CRLF to LF endings.

@AmirGilboa
Copy link
Author

cool. than you.

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

No branches or pull requests

2 participants