Comments (5)
Hi, the starter already comes with an external template (sample.component.html) and external style (sample.component.scss) which are working fine actually. Is there an example that you can provide to me to reproduce the issue?
from ngx-library-starter.
Hi. Thank you for your answer.
I'll give you an example in couple of days, because at the moment I haven't enough spare time.
from ngx-library-starter.
I found this project that it's really famous: https://github.com/AngularClass/angular2-webpack-starter
I tried to import you library without any modifications and It won't start.
I received this error:
GET http://localhost:3000/sample.component.html 404 (Not Found)
Failed to load sample.component.html
Removing the external HTML file, I received this error:
GET http://localhost:3000/sample.component.scss 404 (Not Found)
Failed to load sample.component.scss
The same problem happens with angular-cli since it based on webpack2 + treeshaking.
from ngx-library-starter.
How do you reference ngx-library-starter in your package.json, with the git URL like this?
"ngx-library-starter": "https://github.com/cankayacan/ngx-library-starter.git",
This will not use the bundled file but the webpack will bundle everything starting with index.ts on it's own and still working locally for me.
I have also published ngx-library-starter to the npm which is also working fine.
"ngx-library-starter": "0.0.1",
I am using the latest angular2-webpack-starter. You can check the sample usage here.
from ngx-library-starter.
Damn! You are right.
I wrote a script to copy dist folder into my systemjs demo's node_modules, and I copied and pasted it also for webpack.
Thank you for you support.
Issue closed.
from ngx-library-starter.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-library-starter.