mirror of
https://github.com/zadam/trilium.git
synced 2025-01-31 03:19:11 +08:00
perf: building improvement
This commit is contained in:
parent
7aa26580ba
commit
30a8c6b579
4 changed files with 5 additions and 35 deletions
|
@ -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-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-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",
|
"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-jasmine": "jasmine",
|
||||||
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js ",
|
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js ",
|
||||||
"test": "npm run test-jasmine && npm run test-es6",
|
"test": "npm run test-jasmine && npm run test-es6",
|
||||||
|
|
|
@ -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'
|
|
||||||
};
|
|
|
@ -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'
|
|
||||||
};
|
|
|
@ -4,13 +4,15 @@ const assetPath = require('./src/services/asset_path');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: {
|
entry: {
|
||||||
|
setup: './src/public/app/setup.js',
|
||||||
mobile: './src/public/app/mobile.js',
|
mobile: './src/public/app/mobile.js',
|
||||||
|
desktop: './src/public/app/desktop.js',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
publicPath: `${assetPath}/app-dist/`,
|
publicPath: `${assetPath}/app-dist/`,
|
||||||
path: path.resolve(__dirname, 'src/public/app-dist'),
|
path: path.resolve(__dirname, 'src/public/app-dist'),
|
||||||
filename: 'mobile.js'
|
filename: '[name].js',
|
||||||
},
|
},
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
target: 'electron-renderer'
|
target: 'electron-renderer',
|
||||||
};
|
};
|
Loading…
Reference in a new issue