codetmp7.web.app has a build in divless HTML format converter. To use divless HTML anywhere else, you can install divless-html-watcher package from NPM.
bash |
---|
npm i -D @tmp7/divless-html-watcher |
Next, setup a watcher script.
package.json
json |
---|
... "scripts": { "divless": "divless watch" }, ... |
Run the following to start divless HTML watcher :
bash |
---|
npm run divless |
Next, create a .divless folder and put your divless HTML formatted file inside. When the watcher is running, everytime you save a html file, it will convert and create the HTML file just outside the .divless folder.
plaintext |
---|
/.divless index.html index.html |
Note that divless HTML watcher is a one way converter, so make sure to commit the .divless folder in your project repository.
series_divless_html
https://vanillawebdev.blogspot.com/2024/06/divless-html-watcher-on-npm.html
https://www.blogger.com/blog/post/edit/8166404610182826392/6564250531242535902
https://www.blogger.com/blog/page/edit/8166404610182826392/6564250531242535902
Divless HTML Watcher on NPM
June 24, 2024
codetmp7.web.app has a build in divless HTML format converter. To use divless HTML anywhere else, you can install divless-html-watcher package from NPM.
bash |
---|
npm i -D @tmp7/divless-html-watcher |
Next, setup a watcher script.
package.json
json |
---|
... "scripts": { "divless": "divless watch" }, ... |
Run the following to start divless HTML watcher :
bash |
---|
npm run divless |
Next, create a .divless folder and put your divless HTML formatted file inside. When the watcher is running, everytime you save a html file, it will convert and create the HTML file just outside the .divless folder.
plaintext |
---|
/.divless index.html index.html |
Note that divless HTML watcher is a one way converter, so make sure to commit the .divless folder in your project repository.
series_divless_html
Comments
Post a Comment