Open
Description
This works:
"scripts": {
"watch-js": "chokidar 'public/assets/js/**/*.js' -c 'npm run build-js'"
}
This does not:
"config": {
"assets_dir": "public/assets"
},
"scripts": {
"watch-js": "chokidar $npm_package_config_assets_dir/js/**/*.js -c 'npm run build-js'",
}
It does see changes to public/assets/js/inc/some.js
But it does not see changes to public/assets/js/main.js
Only replacing $npm_package_config_assets_dir with the real path works for both files.
This may be an issue with quotes and you can't use quotes with $npm_package_config_assets_dir
So not sure how to resolve this.
Metadata
Metadata
Assignees
Labels
No labels