From 59f65335f624b1374113044fbd671d13e112657f Mon Sep 17 00:00:00 2001 From: Conor Mack Date: Mon, 3 Feb 2020 18:48:49 +0000 Subject: [PATCH] Config updates to add bundles to build folder so that index.html can be un-gitignored --- packages/materialdesign-components/.gitignore | 2 +- .../public/index.html | 18 ++++++++++++++++++ .../rollup.testconfig.js | 4 ++-- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 packages/materialdesign-components/public/index.html diff --git a/packages/materialdesign-components/.gitignore b/packages/materialdesign-components/.gitignore index d1a78365be..f29fd6f0b2 100644 --- a/packages/materialdesign-components/.gitignore +++ b/packages/materialdesign-components/.gitignore @@ -3,4 +3,4 @@ node_modules yarn.lock package-lock.json dist/index.js -public/* \ No newline at end of file +public/build \ No newline at end of file diff --git a/packages/materialdesign-components/public/index.html b/packages/materialdesign-components/public/index.html new file mode 100644 index 0000000000..0008e34ed7 --- /dev/null +++ b/packages/materialdesign-components/public/index.html @@ -0,0 +1,18 @@ + + + + + + + Svelte app + + + + + + + + + + \ No newline at end of file diff --git a/packages/materialdesign-components/rollup.testconfig.js b/packages/materialdesign-components/rollup.testconfig.js index 2ef69b8705..e43e5f5aa1 100644 --- a/packages/materialdesign-components/rollup.testconfig.js +++ b/packages/materialdesign-components/rollup.testconfig.js @@ -91,7 +91,7 @@ export default { sourcemap: true, format: "iife", name: "app", - file: "public/bundle.js", + file: "public/build/bundle.js", globals: { crypto: "crypto" } @@ -104,7 +104,7 @@ export default { // we'll extract any component CSS out into // a separate file — better for performance css: css => { - css.write("public/bundle.css"); + css.write("public/build/bundle.css"); }, hydratable: true