Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

3 lat temu
12345678910111213141516171819202122232425262728
  1. ###bs-snippet-injector
  2. Write & Remove the BrowserSync Snippet to a file
  3. This is an alternative to using the BrowserSync proxy.
  4. ##Install
  5. ```bash
  6. $ npm install browser-sync bs-snippet-injector
  7. ```
  8. ###Example
  9. ```js
  10. // requires version 1.3.3 of BrowserSync or higher.
  11. var browserSync = require("browser-sync");
  12. // register the plugin
  13. browserSync.use(require("bs-snippet-injector"), {
  14. // path to the file containing the closing </body> tag
  15. file: "app/design/frontend/project/template/page/1column.phtml"
  16. });
  17. // now run BrowserSync, wathching CSS files.
  18. browserSync({
  19. files: "skin/frontend/project/assets/css/*.css"
  20. });
  21. ```