Skip to content

Commit 3147f4d

Browse files
committed
fix: vite build process
1 parent 27521f0 commit 3147f4d

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ pnpm preview
3939
### New Release (for Maintainers)
4040

4141
- Execute the release process in the core package incl. releasing on npm
42-
- Update versions in **getting-started.html**, **partials/navbar.html**
42+
- Switch to branch **v2-dev** and also pull newest package in [packages/materialize]()
43+
- Update versions in [src/getting-started.html](), [partials/navbar.html]()
4344
- Run docs locally and check manually
4445
- Make commit to dev (message: "chore: release 2.X.X")
45-
- Make PR in GitHub from dev -> main
46+
- Make PR from dev -> main
4647
- Merge the PR
47-
- Party and spread the news via social media channels 🎉
48+
- Spread news via social media channels

vite.config.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,18 @@ export default {
7979
rollupOptions: {
8080
//this is needed for "vite publish" to include all html files, not only the index.
8181
input: Object.fromEntries(
82-
globSync("*.html").map((file) => [
83-
// This remove the file extension from each
84-
// file, so e.g. nested/foo.js becomes nested/foo
85-
file.slice(0, file.length - path.extname(file).length),
86-
// This expands the relative paths to absolute paths, so e.g.
87-
// src/nested/foo becomes /project/src/nested/foo.js
88-
fileURLToPath(new URL(file, import.meta.url)),
89-
])
82+
globSync("src/*.html").map((file) => {
83+
return [
84+
// This remove the file extension from each
85+
// file, so e.g. nested/foo.js becomes nested/foo
86+
file.slice(0, file.length - path.extname(file).length),
87+
// This expands the relative paths to absolute paths, so e.g.
88+
// src/nested/foo becomes /project/src/nested/foo.js
89+
fileURLToPath(new URL(file, import.meta.url)),
90+
];
91+
})
9092
),
9193
},
94+
outDir: "./../dist", // relative to rootDir
9295
},
9396
};

0 commit comments

Comments
 (0)