aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2022-01-31 23:52:45 +0000
committerGitHub <noreply@github.com>2022-01-31 23:52:45 +0000
commit3f5d75a7f363d1bc00c3559ea4007d8c816ee064 (patch)
treedfff12fc87d13a8b31219fdfec7f5e0e645febed /webpack.config.js
parentb831498dc84062216b2cc0b0587ae1a7168fd9bb (diff)
parent5c03d2c7522e00ef8253918cbb3a1c16cfb07df8 (diff)
Merge pull request #1342 from ueokande/dependabot/npm_and_yarn/webpack-5.67.0
Bump webpack from 4.46.0 to 5.67.0
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js52
1 files changed, 26 insertions, 26 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 5edee1c..9b07c03 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,61 +1,61 @@
-const HtmlWebpackPlugin = require('html-webpack-plugin');
-const path = require('path');
+const HtmlWebpackPlugin = require("html-webpack-plugin");
+const path = require("path");
-const src = path.resolve(__dirname, 'src');
-const dist = path.resolve(__dirname, 'build');
+const src = path.resolve(__dirname, "src");
+const dist = path.resolve(__dirname, "build");
const config = {
entry: {
- content: path.join(src, 'content'),
- settings: path.join(src, 'settings'),
- background: path.join(src, 'background'),
- console: path.join(src, 'console')
+ content: path.join(src, "content"),
+ settings: path.join(src, "settings"),
+ background: path.join(src, "background"),
+ console: path.join(src, "console"),
},
output: {
path: dist,
- filename: '[name].js'
+ filename: "[name].js",
},
optimization: {
- minimize: false
+ minimize: false,
},
performance: {
- hints: false
+ hints: false,
},
module: {
rules: [
{
- test: [ /\.ts$/, /\.tsx$/],
+ test: [/\.ts$/, /\.tsx$/],
exclude: /node_modules/,
- loader: 'ts-loader'
+ use: ["ts-loader"],
},
{
test: /\.css$/,
- loader: 'style-loader!css-loader',
+ use: ["style-loader", "css-loader"],
},
- ]
+ ],
},
resolve: {
- extensions: [ '.js', '.jsx', '.ts', '.tsx' ],
- modules: [path.join(__dirname, 'src'), 'node_modules']
+ extensions: [".js", ".jsx", ".ts", ".tsx"],
+ modules: [path.join(__dirname, "src"), "node_modules"],
},
plugins: [
new HtmlWebpackPlugin({
- template: path.join(src, 'console', 'index.html'),
- filename: path.join(dist, 'console.html'),
- inject: false
+ template: path.join(src, "console", "index.html"),
+ filename: path.join(dist, "console.html"),
+ inject: false,
}),
new HtmlWebpackPlugin({
- template: path.join(src, 'settings', 'index.html'),
- filename: path.join(dist, 'settings.html'),
- inject: false
- })
- ]
+ template: path.join(src, "settings", "index.html"),
+ filename: path.join(dist, "settings.html"),
+ inject: false,
+ }),
+ ],
};
-module.exports = config
+module.exports = config;