Git Product home page Git Product logo

Comments (4)

qdouble avatar qdouble commented on July 20, 2024

If you added sass support to the normal webpack config, you'd need to add it to the test config as well: https://github.com/qdouble/angular-webpack2-starter/blob/master/test-config/webpack.test.js

In most of the branches I'm using node-sass instead of the sass plugin because of AOT issues, but that will change when I switch to the AOT plugin

from angular-webpack-starter.

alvipeo avatar alvipeo commented on July 20, 2024

I added loader for SASS:

      {
        test: /\.(sass|scss)$/,
        loaders: ['css-to-string-loader', 'css-loader?sourceMap', 'resolve-url', 'sass-loader?sourceMap']
      },

but I get error which I don't understand at all :(

[email protected] test E:\Documents\Visual Studio 2015\Projects\angular2-bootstrap3
karma start

11 10 2016 19:33:35.572:ERROR [karma]: TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.relative (path.js:536:5)
at Object.onRender (E:\Documents\Visual Studio 2015\Projects\angular2-bootstrap3\node_modules\sass-loader\index.js:282:42)
at E:\Documents\Visual Studio 2015\Projects\angular2-bootstrap3\node_modules\sass-loader\node_modules\async\dist\async.js:2231:35

what's this path.js? where is it?

from angular-webpack-starter.

qdouble avatar qdouble commented on July 20, 2024

@alvipeo since your setup isn't really based on the way I have the starter setup, it's difficult to tell you where the problem is exactly. I suppose you could try using a loader like this instead:
{ test: /\.scss$/, loaders: ['raw-loader', 'sass-loader'] },

from angular-webpack-starter.

alvipeo avatar alvipeo commented on July 20, 2024

HUGE THANK YOU! that worked!

from angular-webpack-starter.

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.