Skip to content

Dead-simple rollup plugin to watch (non-js) assets like HTML and CSS

License

Notifications You must be signed in to change notification settings

parkingboss/rollup-plugin-watch-assets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'] })
  ]
}

About

Dead-simple rollup plugin to watch (non-js) assets like HTML and CSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%