Skip to content

Commit

Permalink
rollup, revise usage and further refine config
Browse files Browse the repository at this point in the history
* watch now working with `watch` again
* watch works without configuration
* only one output
  • Loading branch information
BuJo committed Sep 3, 2023
1 parent 06ed4dc commit 4703645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"rollup": "^3.28.1"
},
"scripts": {
"dev": "rollup -c --watch",
"watch": "rollup -c --watch",
"build": "rollup -c"
},
"repository": {
Expand Down
9 changes: 2 additions & 7 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ import terser from '@rollup/plugin-terser';

export default {
input: 'pkg/web/static/js/index.js',
watch: {
include: 'pkg/web/static/js/**'
},
output: [
{
output: {
file: 'pkg/web/static/js/index.min.js',
format: 'es',
sourcemap: true,
plugins: [terser()]
}
],
},
plugins: [nodeResolve()]
};

0 comments on commit 4703645

Please sign in to comment.