Comments (4)
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.
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 start11 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.
@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.
HUGE THANK YOU! that worked!
from angular-webpack-starter.
Related Issues (20)
- file is not exists
- Error in universal:AOT build: Cannot find module './ngfactory/app/server.app.module.ngfactory'. HOT 3
- How to add fonts HOT 3
- Can you rename the repository? HOT 2
- warnings when running `yarn` HOT 1
- AOT and platform-browser-dynamic HOT 1
- Is there a simple example that mimics communication between sibling components? HOT 1
- Is this project still active ? HOT 1
- Http(Client)Module has changed
- Typescript source maps HOT 2
- Webpack 4 / Angular 6 HOT 7
- yarn test failing HOT 2
- Ability to skip bundle analysis for CI prod builds HOT 1
- Getting "Cannot find module 'zone.js/dist/zone-node'" when deploying on production server HOT 6
- Can't run tests, at-loader can't find .ts files! HOT 1
- Getting error running Universal out of the box HOT 3
- Can you please add comments to your code. HOT 1
- How to see karma output in debug window? HOT 6
- Issue with npm/Yarn Install HOT 2
- Angular 7 HOT 3
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 angular-webpack-starter.