cankayacan / ngx-library-starter Goto Github PK
View Code? Open in Web Editor NEWAngular >2 library stater with rollup.
Angular >2 library stater with rollup.
If I want to compile a personal library using this project everything seems ok.
My systemjs demo is ok, but not webpack2 and angular-cli demos.
Using webpack2 with treeshaking (also without AOT in my demo project), compilation is ok, but I receive this error
Failed to load resource: the server responded with a status of 404 (Not Found)
Failed to load LIBRARY.scss
Using angular-cli, compilation is ok, but I receive this error
GET http://localhost:4200/LIBRARY.scss 404 (Not Found)
Unhandled Promise rejection: Failed to load LIBRARY.scss ; Zone: <root> ; Task: Promise.then ; Value: Failed to load LIBRARY.scss
The same problem happens with a templateUrl inside my library. If I use an external html file instead of an inline template I receive a similar error. It seems that relative paths cause these problems.
Could you confirm this?
Thanks
Hi!
I tried to update my library based on ngx-library-starter to Angular 5 beta 7.
Building process is ok and I can use the library with both webpack and angular-cli, but it fails with Systemjs 0.20.x, because it's using the umd bundle (probably broken).
For instance, It fails while loading all my HTML template files:
Failed to load resource: the server responded with a status of 404 (Not Found)
Unhandled Promise rejection: Failed to load modal-gallery.html ; Zone: <root> ; Task: Promise.then ; Value: Failed to load modal-gallery.html undefined
api.onUnhandledError @ zone.js:661
Can you confirm the problem? If yes, do you have an idea of how to fix this?
Is it a configuration problem or something about this plugin https://github.com/cankayacan/rollup-plugin-angular-aot?
Thank u.
Ks89
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.