Replace single quotes with double quotes
This commit is contained in:
parent
ffa1eeb734
commit
bfc3056fe9
3 changed files with 20 additions and 20 deletions
|
@ -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"
|
||||
}
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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")}
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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")}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue