@flatjs/forge-plugin-watch-copy

A flatjs plugin to watch module entries and copy additional assets into the output directory of your rollup bundle.

Usage no npm install needed!

<script type="module">
  import flatjsForgePluginWatchCopy from 'https://cdn.skypack.dev/@flatjs/forge-plugin-watch-copy';
</script>

README

A flatjs plugin to allow us dynamic change entry inputs and copy additional assets into the output directory of your rollup bundle.

Feature normally used to copy index.json, index.wxml, app.json, project.config.json from directory of each entry

+ modules/
+ home/
+ pages/
+ page1/
+ index.ts
+ index.json (`copy`)
+ index.wxml (`copy`)
+ index.less
+ mine/
+ pages/
+ page1/
+ index.ts
+ index.json (`copy`)
+ index.wxml (`copy`)
+ index.less
+ app.json (`copy`)
+ app.ts
+ app.less

https://github.com/mjackson/rollup-watch-dir