2.0.0 • Published 4 years ago

@parkingboss/rollup-plugin-watch-assets v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

rollup-plugin-watch-assets

Dead-simple plugin to add assets like HTML and CSS to rollup's file watcher.

Useful if you use a copy plugin to copy over assets when building.

Pass an array of filenames or globs to the assets option to tell the plugin which files to watch. They will be expanded and resolved, then watched.

import watchAssets from 'rollup-plugin-watch-assets';

export default {
  input: 'src/index.js',
  output: {
    dir: 'build',
    format: 'es'
  },
  plugins: [
    watchAssets({ assets: ['src/index.html', 'src/styles/*.css'] })
  ]
}