From bfc3056fe95547a4ec36b0ac1f97534c55ba042e Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 3 Aug 2024 05:39:37 -0300 Subject: [PATCH] Replace single quotes with double quotes --- webpack.common.js | 24 ++++++++++++------------ webpack.development.js | 8 ++++---- webpack.production.js | 8 ++++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index a989c48..2ca1450 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,31 +1,31 @@ -const path = require('path'); -const process = require('process'); +const path = require("path"); +const process = require("process"); const CopyPlugin = require("copy-webpack-plugin"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); module.exports = { entry: { - index: './src/js/index.tsx', + index: "./src/js/index.tsx", }, output: { - filename: 'js/[name].js', - path: path.resolve(__dirname, 'build') + filename: "js/[name].js", + path: path.resolve(__dirname, "build") }, resolve: { - alias: { '~': [path.resolve('src/js/')] }, - roots: [path.resolve('src/js'), path.resolve('node_modules')], - modules: [path.resolve('src/js'), path.resolve('node_modules')], - extensions: ['.ts', '.tsx'] + alias: { "~": [path.resolve("src/js/")] }, + roots: [path.resolve("src/js"), path.resolve("node_modules")], + modules: [path.resolve("src/js"), path.resolve("node_modules")], + extensions: [".ts", ".tsx"] }, module: { rules: [ { test: /\.tsx?$/, - loader: 'esbuild-loader', + loader: "esbuild-loader", exclude: /node_modules/, options: { - loader: 'tsx', - target: 'es2015' + loader: "tsx", + target: "es2015" } }, ], diff --git a/webpack.development.js b/webpack.development.js index 82c772b..af78d2e 100644 --- a/webpack.development.js +++ b/webpack.development.js @@ -1,11 +1,11 @@ -const path = require('path'); -const { merge } = require('webpack-merge'); -const common = require('./webpack.common.js'); +const path = require("path"); +const { merge } = require("webpack-merge"); +const common = require("./webpack.common.js"); module.exports = merge( common, { mode: "development", devtool: "inline-source-map", - output: {path: path.resolve(__dirname, 'build', 'development')} + output: {path: path.resolve(__dirname, "build", "development")} } ) diff --git a/webpack.production.js b/webpack.production.js index 76e7e7a..f02916c 100644 --- a/webpack.production.js +++ b/webpack.production.js @@ -1,6 +1,6 @@ -const path = require('path'); -const { merge } = require('webpack-merge'); -const common = require('./webpack.common.js'); +const path = require("path"); +const { merge } = require("webpack-merge"); +const common = require("./webpack.common.js"); module.exports = merge( common, @@ -8,6 +8,6 @@ module.exports = merge( mode: "production", devtool: false, optimization: { minimize: true }, - output: {path: path.resolve(__dirname, 'build', 'production')} + output: {path: path.resolve(__dirname, "build", "production")} } )