SASS support for components

ability to use '.scss' files from within components
This commit is contained in:
Denys Vuika
2017-05-19 11:27:35 +01:00
committed by Eugenio Romano
parent c6f6227da7
commit aa19904e5c
53 changed files with 257 additions and 34 deletions

View File

@@ -79,6 +79,10 @@ module.exports = {
include: [helpers.root('app'), helpers.root('../ng2-components')],
loader: 'raw-loader'
},
{
test: /\.component.scss$/,
use: ['to-string-loader', 'raw-loader', 'sass-loader']
},
{
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
loader: 'file-loader?name=assets/[name].[hash].[ext]'