hirasso / parcel-plugin-watch-reload Goto Github PK
View Code? Open in Web Editor NEWParcel plugin to watch files not included in the bundles and reload browser if they change
License: MIT License
Parcel plugin to watch files not included in the bundles and reload browser if they change
License: MIT License
Plugin looks great!
I have enabled it for PHP files and it detects the file changes on the command line:
wp-content/themes/limpido/footer.php changed: reloading browsers...
...However it doesn't reload the Browser.
A manual refresh shows the code changes.
Can you help? It would be useful!
Some Background Info
Using parcel to build JS and SCSS in a Wordpress theme.
package.json
{ "name": "XYZ", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "parcel watch ./wp-content/themes/limpido/src/parcel-entrypoint.js --out-file=site --out-dir=wp-content/themes/limpido/dist", "build": "parcel build ./wp-content/themes/limpido/src/parcel-entrypoint.js --out-file=site --out-dir=wp-content/themes/limpido/dist" }, "author": "", "license": "ISC", "devDependencies": { "autoprefixer": "^9.7.1", "parcel-bundler": "^1.12.4", "parcel-plugin-watch-reload": "0.0.2", "postcss-modules": "^1.4.1", "sass": "^1.23.3", "spectre.css": "^0.5.8" }, "watchreload": { "files": "**/*.php" } }
.postcssrc
{ "modules": false, "plugins": { "autoprefixer": { "grid": true } } }
Sometimes the backend is not reloaded when parcel is already reloaded.
Plz, add a small reload delay by conf.
lets say you have folder structure
src/
modules/
header.html
index.html
you included header.html with posthtml-modules, modules folder files change reloads browser but doesn't builds it
检测到 hirasso/parcel-plugin-watch-reload 一共引入了577个开源组件,存在6个漏洞
漏洞标题:Sindre Sorhus IS-SVG 安全漏洞
缺陷组件:[email protected]
漏洞编号:CVE-2021-29059
漏洞描述:Sindre Sorhus is-svg是 (Sindre Sorhus)开源的一个应用软件。提供检查字符串或缓冲区是否为SVG功能。
IS-SVG 存在安全漏洞,该漏洞源于当应用程序检查一个精心制作的无效SVG字符串时,就会出现正则表达式拒绝服务(ReDOS)。
影响范围:[2.1.0, 4.3.0)
最小修复版本:4.3.0
缺陷组件引入路径:[email protected]>[email protected]>[email protected]>[email protected]>[email protected]>[email protected]
另外还有6个漏洞,详细报告:https://mofeisec.com/jr?p=a3c0c3
Hi,
I'm currently playing around with using Parcel 2 as a bundler for a PHP based shop theme. Now I am struggling to get this plugin to work with Parcel 2 (I am totally new to Parcel, so many of the 0-config things still perplex me).
During my search I discovered that [Parcel 2 enforces a naming scheme](https://v2.parceljs.org/plugin-system/overview/#complete-list-of-plugin-types-(in-a-somewhat-correct-order) that this Plugin doesnt fit, any idea if that would already would fix it and which type of plugin would be correct?
Thanks for any hints, if I get any further i would love to make a PR :)
Morbi
if( !this.settings.files || typeof this.settings.files !== 'string' || typeof this.settings.files !== 'array' ) {
console.log(chalk.bold.yellow(`${this.pluginName} No files specified for watching`));
return;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.