diff options
author | Alexey Vasiliev <leopard.not.a@gmail.com> | 2019-09-28 01:58:59 +0300 |
---|---|---|
committer | Alexey Vasiliev <leopard.not.a@gmail.com> | 2019-09-28 01:58:59 +0300 |
commit | 0956d1945ca7212788530dae6dd345a4d79ca5c1 (patch) | |
tree | c5062c89ba95035b9bd51d91938f58b7e3ca86ac /webpack.config.js | |
parent | 021256471ff7ba07f3e1c1787e135faefd2a3db3 (diff) |
update libs
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index b3049bf..bb2ff6d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -75,7 +75,14 @@ const cssLoaders = [ loader: 'sass-loader', options: { sourceMap: true, - includePaths: [path.join(__dirname, 'webpack', 'css')] + webpackImporter: true, + sassOptions: { + implementation: require('node-sass'), + fiber: require('fibers'), + includePaths: [ + path.join(__dirname, 'webpack', 'css') + ] + } } } ]; @@ -105,7 +112,7 @@ const config = { path.join(__dirname, 'webpack'), path.join(__dirname, 'node_modules') ], - extensions: ['.js', '.jsx', '.json'] + extensions: ['.js', '.jsx', '.json', '.css', '.sass'] }, module: { @@ -129,7 +136,7 @@ const config = { }] }, { - test: /\.(scss|sass)$/, + test: /\.(css|scss|sass)$/, use: cssLoaders } ] |