add webpack for lib

This commit is contained in:
peter
2019-08-19 16:57:46 +02:00
parent 60d0bbc4f1
commit 1d29ed4746
4 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -5,14 +5,14 @@
"scripts": {
"tsc": "tsc",
"start": "npm run build; node lib/FrontblockAdmin.js",
"build": "npm run clean; npm run build-backend;",
"build": "npm run clean; npm run build-backend; npm run webpack",
"build-backend": "tsc; webpack --display-error-details --config src/backend/webpack.prod.js --progress --colors;",
"build-frontend": "npm run build-dashboard",
"build-dashboard": "git submodule init && git submodule update --merge; cd src/frontend/dashboard; npm i && npm run build; cp -r dist/* ../../../static",
"build-widget": "rollup -c src/frontend/widget/rollup.config.js; mkdir -p plugins/PluginManager; cp FrontendPlugin.js plugins/PluginManager",
"clean": "rm -rf lib static plugins data conf dist widget .rpt2_cache *.js *.ts src/frontend/dashboard/dist",
"update-frontblock": "rm -rf node_modules/frontblock*; npm install",
"webpack": "webpack --entry ./lib/FrontblockLib.js --output ./FrontblockLib.min.js"
"webpack": "webpack --mode production --entry ./lib/FrontblockLib.js --output ./lib/FrontblockLib.js"
},
"repository": {
"type": "git",