Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
perf: building improvement
baiyongjie30a8c6b5791c
diff --git a/package.json b/package.jsonindex eff8721e16..3090803fe1 100644--- a/package.json+++ b/package.json@@ -22,7 +22,7 @@"build-backend-docs": "rm -rf ./docs/backend_api && ./node_modules/.bin/jsdoc -c jsdoc-conf.json -d ./docs/backend_api src/becca/entities/*.js src/services/backend_script_api.js src/services/sql.js","build-frontend-docs": "rm -rf ./docs/frontend_api && ./node_modules/.bin/jsdoc -c jsdoc-conf.json -d ./docs/frontend_api src/public/app/entities/*.js src/public/app/services/frontend_script_api.js src/public/app/widgets/right_panel_widget.js","build-docs": "npm run build-backend-docs && npm run build-frontend-docs",- "webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js",+ "webpack": "webpack -c webpack.config.js","test-jasmine": "jasmine","test-es6": "node -r esm spec-es6/attribute_parser.spec.js ","test": "npm run test-jasmine && npm run test-es6",diff --git a/webpack-desktop.config.js b/webpack-desktop.config.jsdeleted file mode 100644index 8fbf0e152a..0000000000--- a/webpack-desktop.config.js+++ /dev/null@@ -1,16 +0,0 @@-const path = require('path');-const assetPath = require('./src/services/asset_path');--module.exports = {- mode: 'production',- entry: {- mobile: './src/public/app/desktop.js',- },- output: {- publicPath: `${assetPath}/app-dist/`,- path: path.resolve(__dirname, 'src/public/app-dist'),- filename: 'desktop.js'- },- devtool: 'source-map',- target: 'electron-renderer'-};diff --git a/webpack-setup.config.js b/webpack-setup.config.jsdeleted file mode 100644index dee04f0904..0000000000--- a/webpack-setup.config.js+++ /dev/null@@ -1,16 +0,0 @@-const path = require('path');-const assetPath = require('./src/services/asset_path');--module.exports = {- mode: 'production',- entry: {- mobile: './src/public/app/setup.js',- },- output: {- publicPath: `${assetPath}/app-dist/`,- path: path.resolve(__dirname, 'src/public/app-dist'),- filename: 'setup.js'- },- devtool: 'source-map',- target: 'electron-renderer'-};diff --git a/webpack-mobile.config.js b/webpack.config.jssimilarity index 69%rename from webpack-mobile.config.jsrename to webpack.config.jsindex 4fc72b8be6..41077c00e5 100644--- a/webpack-mobile.config.js+++ b/webpack.config.js@@ -4,13 +4,15 @@ const assetPath = require('./src/services/asset_path');module.exports = {mode: 'production',entry: {+ setup: './src/public/app/setup.js',mobile: './src/public/app/mobile.js',+ desktop: './src/public/app/desktop.js',},output: {publicPath: `${assetPath}/app-dist/`,path: path.resolve(__dirname, 'src/public/app-dist'),- filename: 'mobile.js'+ filename: '[name].js',},devtool: 'source-map',- target: 'electron-renderer'+ target: 'electron-renderer',};