Git Product home page Git Product logo

Comments (5)

cankayacan avatar cankayacan commented on September 4, 2024

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.

Ks89 avatar Ks89 commented on September 4, 2024

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.

Ks89 avatar Ks89 commented on September 4, 2024

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.

cankayacan avatar cankayacan commented on September 4, 2024

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.

Ks89 avatar Ks89 commented on September 4, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.