Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.1 KB

README.md

File metadata and controls

29 lines (16 loc) · 1.1 KB

ShowcaseNg6Style

The project is supposed to show options of how to build a Component Library based on the feature set of Angular 6+. In particular having a Global SCSS Style delivered with your library.

This project was generated with Angular CLI version 6.0.8.

Setup

The setup has been based on:

and not to forget a quite interesting post about how to combine Angular 6+ workspace / libraries with Global Styles

Compiling css in new Angular 6 libraries

Rollup.js Namespace problem

A known problem with rollup.js when using libraries like moment.js or interact.js is:

Cannot call a namespace ('moment')

could be solved by changing the import:

import * as moment_ from 'moment';

const moment: any = (moment_).default || moment_;