mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
chore: upgrade packages and improve build perf
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
const { execSync } = require("child_process");
|
||||
const { cpus } = require("os");
|
||||
|
||||
const NUM_CPUS = cpus().length;
|
||||
const IS_CI = process.env.CI;
|
||||
const gitHash = execSync("git rev-parse --short HEAD").toString().trim();
|
||||
module.exports = {
|
||||
all: {
|
||||
UV_THREADPOOL_SIZE: IS_CI ? NUM_CPUS : 2,
|
||||
GENERATE_SOURCEMAP: false,
|
||||
INLINE_RUNTIME_CHUNK: false,
|
||||
DISABLE_ESLINT_PLUGIN: true,
|
||||
REACT_APP_GIT_HASH: gitHash,
|
||||
},
|
||||
dev: {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"@mdi/react": "^1.4.0",
|
||||
"@notesnook/desktop": "file:./desktop/",
|
||||
"@rebass/forms": "^4.0.6",
|
||||
"@streetwritersco/tinymce-plugins": "^1.3.1",
|
||||
"@streetwritersco/tinymce-plugins": "^1.3.2",
|
||||
"@tinymce/tinymce-react": "^3.13.0",
|
||||
"axios": "^0.21.4",
|
||||
"clipboard-polyfill": "^3.0.3",
|
||||
@@ -72,6 +72,7 @@
|
||||
"eslint-plugin-jsx-a11y": "^6.2.3",
|
||||
"eslint-plugin-react": "^7.22.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"find-process": "^1.4.4",
|
||||
"patch-package": "^6.4.7",
|
||||
"source-map-explorer": "^2.5.2",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/security#csp-meta-tag -->
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="script-src 'self' https://analytics.streetwriters.co https://cdn.paddle.com 'unsafe-inline' 'unsafe-eval';"
|
||||
content="script-src 'self' https://analytics.streetwriters.co https://cdn.paddle.com https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval';"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import StorageInterface from "../interfaces/storage";
|
||||
import FS from "../interfaces/fs";
|
||||
import EventSource from "eventsource";
|
||||
import Config from "../utils/config";
|
||||
import http from "notes-core/utils/http";
|
||||
import { EV, EVENTS } from "notes-core/common";
|
||||
|
||||
@@ -3,8 +3,10 @@ import "./editor.css";
|
||||
import "@streetwritersco/tinymce-plugins/codeblock/styles.css";
|
||||
import "@streetwritersco/tinymce-plugins/collapsibleheaders/styles.css";
|
||||
import "tinymce/tinymce";
|
||||
import "tinymce/icons/default";
|
||||
import "tinymce/themes/silver";
|
||||
// eslint-disable-next-line import/no-webpack-loader-syntax
|
||||
import "file-loader?name=static/js/icons/default/icons.js&esModule=false!tinymce/icons/default/icons.min.js";
|
||||
// eslint-disable-next-line import/no-webpack-loader-syntax
|
||||
import "file-loader?name=static/js/themes/silver/theme.js&esModule=false!tinymce/themes/silver/theme.min.js";
|
||||
import "tinymce/plugins/table";
|
||||
import "tinymce/plugins/autoresize";
|
||||
import "tinymce/plugins/searchreplace";
|
||||
|
||||
Reference in New Issue
Block a user