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 path = require("path");
|
||||||
const process = require('process');
|
const process = require("process");
|
||||||
const CopyPlugin = require("copy-webpack-plugin");
|
const CopyPlugin = require("copy-webpack-plugin");
|
||||||
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
index: './src/js/index.tsx',
|
index: "./src/js/index.tsx",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'js/[name].js',
|
filename: "js/[name].js",
|
||||||
path: path.resolve(__dirname, 'build')
|
path: path.resolve(__dirname, "build")
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: { '~': [path.resolve('src/js/')] },
|
alias: { "~": [path.resolve("src/js/")] },
|
||||||
roots: [path.resolve('src/js'), path.resolve('node_modules')],
|
roots: [path.resolve("src/js"), path.resolve("node_modules")],
|
||||||
modules: [path.resolve('src/js'), path.resolve('node_modules')],
|
modules: [path.resolve("src/js"), path.resolve("node_modules")],
|
||||||
extensions: ['.ts', '.tsx']
|
extensions: [".ts", ".tsx"]
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
loader: 'esbuild-loader',
|
loader: "esbuild-loader",
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
options: {
|
options: {
|
||||||
loader: 'tsx',
|
loader: "tsx",
|
||||||
target: 'es2015'
|
target: "es2015"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
const path = require('path');
|
const path = require("path");
|
||||||
const { merge } = require('webpack-merge');
|
const { merge } = require("webpack-merge");
|
||||||
const common = require('./webpack.common.js');
|
const common = require("./webpack.common.js");
|
||||||
module.exports = merge(
|
module.exports = merge(
|
||||||
common,
|
common,
|
||||||
{
|
{
|
||||||
mode: "development",
|
mode: "development",
|
||||||
devtool: "inline-source-map",
|
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 path = require("path");
|
||||||
const { merge } = require('webpack-merge');
|
const { merge } = require("webpack-merge");
|
||||||
const common = require('./webpack.common.js');
|
const common = require("./webpack.common.js");
|
||||||
|
|
||||||
module.exports = merge(
|
module.exports = merge(
|
||||||
common,
|
common,
|
||||||
|
@ -8,6 +8,6 @@ module.exports = merge(
|
||||||
mode: "production",
|
mode: "production",
|
||||||
devtool: false,
|
devtool: false,
|
||||||
optimization: { minimize: true },
|
optimization: { minimize: true },
|
||||||
output: {path: path.resolve(__dirname, 'build', 'production')}
|
output: {path: path.resolve(__dirname, "build", "production")}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue