Skip to content

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

Closed

Description

@maclarensg

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.

Activity

  1. changed the title [-]ng build -prod does not copy assets [/-] [+]ng build -prod does copies with javascripts missing [/+] on Aug 11, 2016
  2. changed the title [-]ng build -prod does copies with javascripts missing [/-] [+]ng build -prod does copies assets with javascripts missing [/+] on Aug 11, 2016
  3. filipesilva commented on Aug 18, 2016

    @filipesilva
    Contributor

    Fixed in #1455.

  4. alexsorokoletov commented on Aug 19, 2016

    @alexsorokoletov

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

  5. filipesilva commented on Aug 23, 2016

    @filipesilva
    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

  6. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions