@enhance/arc-plugin-rollup
Advanced tools
Comparing version 1.0.2 to 1.0.4
{ | ||
"name": "@enhance/arc-plugin-rollup", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "Use rollup.js to bundle pages for the browser in your Enhance project", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -6,1 +6,10 @@ # arc-plugin-rollup | ||
`npm i @enhance/arc-plugin-rollup` | ||
Add the plugin to your `arc` file | ||
``` | ||
@plugins | ||
enhance/arc-plugin-rollup | ||
``` | ||
Any file added to `/app/browser` will be bundled to `/public/pages` | ||
@@ -51,4 +51,8 @@ const { join } = require('path') | ||
async watcher ({ inventory }) { | ||
await build(inventory.inv) | ||
async watcher ({ filename, inventory }) { | ||
if (filename.indexOf('/app/browser/') > -1 || | ||
filename.indexOf('/app/pages/') > -1 || | ||
filename.indexOf('/app/elements/') > -1) { | ||
await build(inventory.inv) | ||
} | ||
} | ||
@@ -55,0 +59,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13879
58
15