aboutsummaryrefslogtreecommitdiffstats
path: root/rollup.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js
new file mode 100644
index 0000000..56fd795
--- /dev/null
+++ b/rollup.config.js
@@ -0,0 +1,18 @@
+// rollup.config.js
+import resolve from 'rollup-plugin-node-resolve';
+import copy from 'rollup-plugin-copy';
+
+export default {
+ input: 'src/index.js',
+ output: {
+ file: 'dist/app.js',
+ format: 'cjs',
+ name: 'demo',
+ },
+ plugins: [
+ resolve(),
+ copy({
+ targets: [ { src: 'src/index.html', dest: 'dist/' } ],
+ }),
+ ],
+};