mirror of https://github.com/keeweb/keeweb.git
Run npm update and address some outdated packages and options
This commit is contained in:
parent
d9d9c07414
commit
214adcedbd
8
.babelrc
8
.babelrc
|
@ -2,13 +2,13 @@
|
|||
"presets": [],
|
||||
"plugins": [
|
||||
["@babel/plugin-proposal-class-properties", { "loose": true }],
|
||||
["@babel/plugin-proposal-object-rest-spread", { "loose": true,
|
||||
["@babel/plugin-transform-object-rest-spread", { "loose": true,
|
||||
"useBuiltIns": true
|
||||
}],
|
||||
"@babel/plugin-proposal-optional-catch-binding",
|
||||
"@babel/plugin-transform-optional-catch-binding",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||
"@babel/plugin-proposal-logical-assignment-operators",
|
||||
"@babel/plugin-transform-nullish-coalescing-operator",
|
||||
"@babel/plugin-transform-logical-assignment-operators",
|
||||
"@babel/plugin-external-helpers"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@ const webpack = require('webpack');
|
|||
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
// const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
const rootDir = path.join(__dirname, '..');
|
||||
|
@ -190,11 +191,12 @@ function config(options) {
|
|||
ecma: 6
|
||||
}
|
||||
}),
|
||||
new OptimizeCSSAssetsPlugin({
|
||||
cssProcessorPluginOptions: {
|
||||
preset: ['default', { discardComments: { removeAll: true } }]
|
||||
}
|
||||
}),
|
||||
// new OptimizeCSSAssetsPlugin({
|
||||
// cssProcessorPluginOptions: {
|
||||
// preset: ['default', { discardComments: { removeAll: true } }]
|
||||
// }
|
||||
// }),
|
||||
new CssMinimizerPlugin(),
|
||||
new BundleAnalyzerPlugin({
|
||||
openAnalyzer: false,
|
||||
analyzerMode: 'static',
|
||||
|
@ -219,7 +221,7 @@ function config(options) {
|
|||
$: 'jquery',
|
||||
babelHelpers: 'babel-helpers'
|
||||
}),
|
||||
new webpack.IgnorePlugin(/^(moment)$/),
|
||||
new webpack.IgnorePlugin({ resourceRegExp: /^(moment)$/ }),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: 'css/[name].css'
|
||||
})
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,12 +25,13 @@
|
|||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "8.2.2",
|
||||
"baron": "3.0.3",
|
||||
"base64-inline-loader": "^1.1.1",
|
||||
"base64-inline-loader": "^2.0.0",
|
||||
"base64-loader": "1.0.0",
|
||||
"bourbon": "^7.0.0",
|
||||
"chai": "^4.3.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"css-loader": "^5.2.4",
|
||||
"css-minimizer-webpack-plugin": "^6.0.0",
|
||||
"dompurify": "^2.2.8",
|
||||
"electron": "^13.6.9",
|
||||
"electron-builder": "^22.11.1",
|
||||
|
@ -78,7 +79,6 @@
|
|||
"morphdom": "^2.6.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"normalize.css": "8.0.1",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.4",
|
||||
"pikaday": "1.8.2",
|
||||
"pkcs11-smartcard-sign": "^1.0.1",
|
||||
"postcss": "^8.2.14",
|
||||
|
@ -143,4 +143,4 @@
|
|||
"last 1 ChromeAndroid version",
|
||||
"Electron > 6.0.1"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue