1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Update npm/yarn dependencies

Replace deprecated babel-eslint with @babel/eslint-parser
Replace deprecated eslint-loader with eslint-webpack-plugin
Update other plugins, resolving several opened security reports.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2021-06-27 17:34:25 +02:00
parent fe572f5a6c
commit c467bf9382
5 changed files with 1608 additions and 1707 deletions

View file

@ -1,6 +1,7 @@
const { merge } = require('webpack-merge');
const webpack = require('webpack');
const commonConfig = require('./common.js');
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = merge(commonConfig, {
devtool: 'eval-source-map',
@ -15,16 +16,11 @@ module.exports = merge(commonConfig, {
// match the output path
},
plugins: [
new ESLintPlugin(),
new webpack.HotModuleReplacementPlugin(),
],
module: {
rules: [
{
enforce: 'pre',
test: /\.js$/,
loader: 'eslint-loader',
exclude: /node_modules/,
},
{
test: /\.js$/,
exclude: /(node_modules)/,

View file

@ -1,5 +1,6 @@
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const ESLintPlugin = require('eslint-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
const TerserPlugin = require('terser-webpack-plugin');
@ -27,6 +28,7 @@ module.exports = merge(commonConfig, {
],
},
plugins: [
new ESLintPlugin(),
new MiniCssExtractPlugin(),
new webpack.DefinePlugin({
'process.env': {
@ -40,12 +42,6 @@ module.exports = merge(commonConfig, {
],
module: {
rules: [
{
enforce: 'pre',
test: /\.js$/,
loader: 'eslint-loader',
exclude: /node_modules/,
},
{
test: /\.js$/,
exclude: /(node_modules)/,