aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js28
1 files changed, 17 insertions, 11 deletions
diff --git a/webpack.config.js b/webpack.config.js
index c1464ac2a..a153616b8 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -12,8 +12,8 @@ const plugins = [
// new ForkTsCheckerWebpackPlugin({
// typescript: {
// // useTypescriptIncrementalApi: true,
- // // tslint: true,
- // memoryLimit: 4096,
+ // eslint: true,
+ // memoryLimit: 8192,
// },
// // tslint: true,
// // memoryLimit: 4096,
@@ -108,16 +108,22 @@ module.exports = {
},
{
test: /\.scss|css$/,
+ exclude: /\.module\.scss$/i,
use: [
- {
- loader: 'style-loader',
- },
- {
- loader: 'css-loader',
- },
- {
- loader: 'sass-loader',
- },
+ { loader: 'style-loader' }, // eslint-disable-next-line prettier/prettier
+ { loader: 'css-loader' },
+ { loader: 'sass-loader' },
+ ],
+ },
+
+ // --------
+ // SCSS MODULES - all have .module. in their name and can export to .tsx
+ {
+ test: /\.module\.scss$/i,
+ use: [
+ { loader: 'style-loader' }, // eslint-disable-next-line prettier/prettier
+ { loader: 'css-loader', options: { modules: true } },
+ { loader: 'sass-loader' },
],
},
{