Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit 840d7b9

Browse files
smajlniieani
authored andcommitted
feat(index): allow loading of .sass files with SASS syntax (#6)
closes #7
1 parent 407a00c commit 840d7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
1212
*/
1313
export = function sass({ filename = '[name].css', allChunks = false, sourceMap = false, extractText = undefined, resolveRelativeUrl = undefined, additionalLoaders = [] } = {}) {
1414
additionalLoaders.push(`sass${sourceMap ? '?sourceMap' : ''}`)
15-
return easyCss({ test: /\.scss$/i, filename, allChunks, extractText, resolveRelativeUrl, sourceMap, additionalLoaders })
15+
return easyCss({ test: /\.(scss|sass)$/i, filename, allChunks, extractText, resolveRelativeUrl, sourceMap, additionalLoaders })
1616
}

0 commit comments

Comments
 (0)