Skip to content

What is the simplest, most straightforward manner of including CSS preprocessor? #34

Closed

Description

@marsitatheultra

Some reading: http://angular-tips.com/blog/2015/06/using-angular-1-dot-x-with-es6-and-webpack/

screen shot 2016-06-23 at 22 43 54

Having a look at the list of features:
screen shot 2016-06-23 at 22 44 22

Having look at the source code: https://github.com/preboot/angular-webpack/blob/master/webpack.config.js#L97-L102


I put a test.scss file into style directory and the styles wasn't applied.

body {
  a {
    color: red;
  }
}

My experience with WebPack so far - it combines all .js into a single app.bundle.js - I would like to have same feature for the styles... Before I start reinventing the wheel - is it a matter of changing some settings in CSS loader, or maybe adding some other loader such as: https://github.com/jtangelder/sass-loader ?

Or maybe it is working all the time, it's just me not naming files correctly, not importing them?


I can confirm that test.css is working just fine while .scss fails to load:
screen shot 2016-06-23 at 22 55 05

Activity

  1. phra commented on Nov 16, 2016

    @phra
    Member

    just follow README.md of the selected loader for webpack, like this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions