Skip to content

Commit

Permalink
feat: add watcher for changes on dev command
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Mar 6, 2024
1 parent d454d53 commit b855f1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"build": "rollup -c",
"dev": "cross-env DEV=true rollup -c",
"dev": "cross-env DEV=true rollup -c --watch",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
10 changes: 8 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default [{
emitCss: false
}),
resolve()
]
],
watch: {
include: "src/**"
}
}, {
input: 'src/main.js',
output: [
Expand All @@ -38,5 +41,8 @@ export default [{
emitCss: false
}),
resolve()
]
],
watch: {
include: "src/**"
}
}];

0 comments on commit b855f1a

Please sign in to comment.