Skip to content

Build your personal knowledge base with Trilium Notes

v32.0.0 package and webpack updates, node 12 -> 14

Tony Narlock76d6a39aaf35
diff --git a/package.json b/package.json
index eef5cb0d79..a0b4ea895a 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,10 @@
"ckeditor5-plugin",
"ckeditor5-math"
],
+ "resolutions": {
+ "postcss-loader": "^4.0.0",
+ "mini-css-extract-plugin": "2.4.2"
+ },
"dependencies": {
"@ckeditor/ckeditor5-clipboard": "^32.0.0",
"@ckeditor/ckeditor5-core": "^32.0.0",
@@ -34,16 +38,16 @@
"html-webpack-plugin": "^5.3.1",
"husky": "^4.2.5",
"lint-staged": "^10.2.6",
- "mini-css-extract-plugin": "^1.6.0",
+ "mini-css-extract-plugin": "^2.4.2",
"raw-loader": "^4.0.2",
"stylelint": "^13.5.0",
"stylelint-config-ckeditor5": "^2.0.1",
- "webpack": "^5.36.2",
+ "webpack": "^5.58.1",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2"
},
"engines": {
- "node": ">=12.0.0",
+ "node": ">=14.0.0",
"npm": ">=5.7.1"
},
"author": "Sauli Anto",
diff --git a/webpack.config.js b/webpack.config.js
index 7e49df38b7..ec8764bd31 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -44,14 +44,16 @@ module.exports = {
"css-loader",
{
loader: "postcss-loader",
- options: styles.getPostCssConfig({
- themeImporter: {
- themePath: require.resolve(
- "@ckeditor/ckeditor5-theme-lark"
- ),
- },
- minify: true,
- }),
+ options: {
+ postcssOptions: styles.getPostCssConfig({
+ themeImporter: {
+ themePath: require.resolve(
+ "@ckeditor/ckeditor5-theme-lark"
+ ),
+ },
+ minify: true,
+ }),
+ },
},
],
},