title: Adding moment.js timezone in Angular project with angular cli - webpack
body: <p>I need to add moment.js and a timezone build in an Angular project using angular cli / webpack.</p>
  
  <p>I imported in the ts files the moment-timezone </p>
  
  <pre><code>import * as moment from 'moment-timezone';
  </code></pre>
  
  <p>I configured the <code>angular.json</code> file with the scripts I need</p>
  
  <pre><code>{
    "projects": {
              ..
          "styles": [],
          "scripts": [
            "node_modules/moment/moment.js",
            "node_modules/moment/locale/es.js",
            "node_modules/moment-timezone/moment-timezone.js",
            "node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js"
              ]
  ...
  }
  </code></pre>
  
  <p>This it's partially working but I have two issues:</p>
  
  <ul>
  <li>It's not adding <code>moment-timezone-with-data-2012-2022.js</code></li>
  <li>When I check which files where added in <code>vendor.js</code> I find all moment and moment-timezone folders included</li>
  </ul>
  
  <p>I don't want the full folder is being added to vendor.js. What can I do?</p>