aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2024-12-04 23:03:22 -0500
committereleanor-park <eleanor_park@brown.edu>2024-12-04 23:03:22 -0500
commitb33ffac90703834a4d0c9255aa25702aafe3dfda (patch)
tree396952a2a006dd04079dc0075cbfdeea15a8c64e /webpack.config.js
parent2577ff5a88be04a840c4ac55360265b35d08fe19 (diff)
parent2fee49a7cd342331633bf39d1ac837838d252a18 (diff)
Merge branch 'master' into eleanor-gptdraw
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js
index e1afc64e5..67417fb02 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,4 +1,4 @@
-/* eslint-disable @typescript-eslint/no-var-requires */
+/* eslint-disable @typescript-eslint/no-require-imports */
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
@@ -36,7 +36,6 @@ function transferEnvironmentVariables() {
}
const resolvedClientSide = Object.keys(parsed).reduce((mapping, envKey) => {
if (envKey.startsWith(prefix)) {
- // eslint-disable-next-line
mapping[`process.env.${envKey.replace(prefix, '')}`] = JSON.stringify(parsed[envKey]);
}
return mapping;
@@ -112,7 +111,7 @@ module.exports = {
test: /\.scss|css$/,
exclude: /\.module\.scss$/i,
use: [
- { loader: 'style-loader' }, // eslint-disable-next-line prettier/prettier
+ { loader: 'style-loader' }, //
{ loader: 'css-loader' },
{ loader: 'sass-loader' },
],
@@ -127,7 +126,7 @@ module.exports = {
{
test: /\.module\.scss$/i,
use: [
- { loader: 'style-loader' }, // eslint-disable-next-line prettier/prettier
+ { loader: 'style-loader' }, //
{ loader: 'css-loader', options: { modules: true } },
{ loader: 'sass-loader' },
],