Skip to content

ng build -prod does copies assets with javascripts missing #1637

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
maclarensg opened this issue Aug 11, 2016 · 4 comments
Closed

ng build -prod does copies assets with javascripts missing #1637

maclarensg opened this issue Aug 11, 2016 · 4 comments

Comments

@maclarensg
Copy link

System

 uname -a
Linux gavin-ubuntu 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 ~/Development/ngBRM/dist  cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

angular-cli version:

 ng version    
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.10
node: 5.12.0
os: linux x64

Problem (How to reproduce)

  1. Install jquery and materialize-css, npm install jquery materialize-css --save
  2. add them to angular-cli-build.js
var Angular2App = require('angular-cli/lib/broccoli/angular2-app');

module.exports = function(defaults) {
  return new Angular2App(defaults, {
    vendorNpmFiles: [
      'systemjs/dist/system-polyfills.js',
      'systemjs/dist/system.src.js',
      'zone.js/dist/**/*.+(js|js.map)',
      'es6-shim/es6-shim.js',
      'reflect-metadata/**/*.+(ts|js|js.map)',
      'rxjs/**/*.+(js|js.map)',
      '@angular/**/*.+(js|js.map)',
      'materialize-css/dist/**/*',     
      'jquery/dist/jquery.min.js'
    ]
  });
};
  1. run ng build -prod, all files from materialize except javascript are copied, jquery is missing files too.

  2. run ng build has no issues. Applies to ng serve in production env too.

@maclarensg maclarensg changed the title ng build -prod does not copy assets ng build -prod does copies with javascripts missing Aug 11, 2016
@maclarensg maclarensg changed the title ng build -prod does copies with javascripts missing ng build -prod does copies assets with javascripts missing Aug 11, 2016
@filipesilva
Copy link
Contributor

Fixed in #1455.

@alexsorokoletov
Copy link

@filipesilva I've updated the dev dependency and cli installation to beta 10 and still have same problem with intl-tel-input package

@filipesilva
Copy link
Contributor

@alexsorokoletov it was fixed in #1455 but not yet released. You can use the preview build by following the instructions in https://github.com/angular/angular-cli#webpack-preview-release-update

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants