Skip to content

Commit

Permalink
Add .sass files support (#1412)
Browse files Browse the repository at this point in the history
* Update webpack.config.renderer.dev.dll.js

* update webpack to support sass files

* update webpack to support sass files
  • Loading branch information
ziedhajsalah authored and amilajack committed Feb 6, 2018
1 parent 03f7691 commit 06ce8c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webpack.config.renderer.dev.dll.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default merge.smart(baseConfig, {
},
// SASS support - compile all .global.scss files and pipe it to style.css
{
test: /\.global\.scss$/,
test: /\.global\.(scss|sass)$/,
use: [
{
loader: 'style-loader'
Expand All @@ -96,7 +96,7 @@ export default merge.smart(baseConfig, {
},
// SASS support - compile all other .scss files and pipe it to style.css
{
test: /^((?!\.global).)*\.scss$/,
test: /^((?!\.global).)*\.(scss|sass)$/,
use: [
{
loader: 'style-loader'
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.renderer.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default merge.smart(baseConfig, {
},
// SASS support - compile all .global.scss files and pipe it to style.css
{
test: /\.global\.scss$/,
test: /\.global\.(scss|sass)$/,
use: [
{
loader: 'style-loader'
Expand All @@ -120,7 +120,7 @@ export default merge.smart(baseConfig, {
},
// SASS support - compile all other .scss files and pipe it to style.css
{
test: /^((?!\.global).)*\.scss$/,
test: /^((?!\.global).)*\.(scss|sass)$/,
use: [
{
loader: 'style-loader'
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.renderer.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default merge.smart(baseConfig, {
},
// Add SASS support - compile all .global.scss files and pipe it to style.css
{
test: /\.global\.scss$/,
test: /\.global\.(scss|sass)$/,
use: ExtractTextPlugin.extract({
use: [
{
Expand All @@ -77,7 +77,7 @@ export default merge.smart(baseConfig, {
},
// Add SASS support - compile all other .scss files and pipe it to style.css
{
test: /^((?!\.global).)*\.scss$/,
test: /^((?!\.global).)*\.(scss|sass)$/,
use: ExtractTextPlugin.extract({
use: [{
loader: 'css-loader',
Expand Down

0 comments on commit 06ce8c4

Please sign in to comment.