Giter VIP home page Giter VIP logo

Comments (8)

damienbod avatar damienbod commented on May 25, 2024

Thanks

At present I use only import with scss or css due to the problems you mentioned above. Tried to find a way to use styleUrls which will work with JIT and AoT but found no solution.

Greetings Damien

from angularwebpackvisualstudio.

robisim74 avatar robisim74 commented on May 25, 2024

@damienbod You say right, but only for the SCSS files: CSS files should work with JiT and AoT compilation.

Regarding this error: Error: Expected 'styles' to be an array of strings., see this question: webpack-contrib/style-loader#123

About AoT compilation, we should add angular2-template-loader also to webpack.prod.

from angularwebpackvisualstudio.

damienbod avatar damienbod commented on May 25, 2024

@robisim74 I think so as well.

from angularwebpackvisualstudio.

damienbod avatar damienbod commented on May 25, 2024

@Tolitech fixed
example here:
https://github.com/damienbod/Angular2WebpackVisualStudio/blob/master/src/Angular2WebpackVisualStudio/angular2App/app/modules/about/components/about.component.ts

from angularwebpackvisualstudio.

Tolitech avatar Tolitech commented on May 25, 2024

Thanks, @damienbod

What exactly was changed?
What files? Webpack?
I'm going to test and thank you very much.

from angularwebpackvisualstudio.

FabianGosebrink avatar FabianGosebrink commented on May 25, 2024

@Tolitech please see the latest commit for that information:

cc547f5#diff-c765faf5fb4fe21767e5a649ebe8e7df

BR

from angularwebpackvisualstudio.

damienbod avatar damienbod commented on May 25, 2024

@Tolitech @robisim74 @FabianGosebrink

production build works, but the dev build crashes. Will have to remove this until I find a solution, will create a new branch for this.

@Tolitech added a angular2-template-loader to the prod build.

from angularwebpackvisualstudio.

damienbod avatar damienbod commented on May 25, 2024

dev branch for this issue:
https://github.com/damienbod/Angular2WebpackVisualStudio/tree/cssStylesLoadingInComponent

from angularwebpackvisualstudio.

Related Issues (20)

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.