You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
1234567891011121314151617
  1. This example shows how you can chain potentially slow-running tasks, but still achieve CSS
  2. Injection. The trick, as seen below, is to use the `bsReload` task that now comes
  3. bundled with `grunt-browser-sync` since `2.1.0`
  4. Don't forget the `spawn: false` option for the watch task - it's a requirement
  5. that allows Browsersync to work correctly
  6. ```js
  7. watch: {
  8. options: {
  9. spawn: false // Important, don't remove this!
  10. },
  11. files: 'app/**/*.scss',
  12. tasks: ['sass', 'autoprefixer', 'bsReload:css']
  13. },
  14. ```