Skip to content
Snippets Groups Projects
Commit eb0532d8 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add terser local development setting, web-server on watch and documentation

parent cab1da0f
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,8 @@ npm run setup
# install dependencies
npm install
# constantly builds dist/bundle.js
# constantly build dist/bundle.js and run a local web-server on port 8002
npm run watch-local
# run local webserver
cd dist; php -S localhost:8002
```
Jump to <http://localhost:8002> and you should get a Single Sign On login page.
......@@ -27,7 +27,7 @@ export default {
minimize: false,
plugins: []
}),
terser(),
(build !== 'local') ? terser() : false,
copy({
targets: [
'index.html',
......@@ -42,6 +42,7 @@ export default {
'node_modules/select2/dist/css',
],
outputFolder: 'dist/select2'
})
}),
(process.env.ROLLUP_WATCH === 'true') ? serve({contentBase: 'dist', host: '127.0.0.1', port: 8002}) : false
]
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment