diff options
author | bobzel <zzzman@gmail.com> | 2023-12-11 17:04:49 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-11 17:04:49 -0500 |
commit | 07c30aed69dfa810ddb0b861ae2dc8e8f3a27356 (patch) | |
tree | 678a0855b169eb88fdc574fd49481ee6e57b12de /webpack.config.js | |
parent | 936aa21fb576472e321a9af976d5da7b75292511 (diff) |
fixed includes of scss globals into typescript files.
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 28 |
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' }, ], }, { |