fix: netlify deployment dotfile restriction

This commit is contained in:
Break27 2024-09-20 03:01:53 +08:00
parent 535b4d1cfd
commit c7bae4a2b5
3 changed files with 4 additions and 4 deletions

View File

@ -6,6 +6,6 @@ export const PATH = {};
PATH.CONFIG = 'config.yaml';
PATH.OUTPUT = 'dist';
PATH.OBJECT = `${NATIVE ? PATH.OUTPUT : ''}/.objects`;
PATH.OBJECT = `${NATIVE ? PATH.OUTPUT : ''}/_site`;
PATH.INDEX = `${PATH.OBJECT}/index`;
PATH.METADATA = `${PATH.OBJECT}/metadata`;

View File

@ -20,8 +20,8 @@ function walkSourceDir([root, parent], callback) {
let filenames = fs.readdirSync(base);
for (let name of filenames) {
// omit filenames starting with '.'
if (name.startsWith(".")) continue;
// omit filenames starting with '.' / '_'
if (name.startsWith(".") || name.startsWith('_')) continue;
let path = [base, name].join('/');
let relpath = [parent, name].filter(Boolean).join('/');

View File

@ -5,7 +5,7 @@ export default defineConfig({
root: 'src',
build: {
outDir: '../dist',
assetsDir: '.assets',
assetsDir: '_assets',
emptyOutDir: true
},
plugins: [