fix: netlify deployment dotfile restriction
This commit is contained in:
parent
535b4d1cfd
commit
c7bae4a2b5
@ -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`;
|
||||
|
||||
@ -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('/');
|
||||
|
||||
@ -5,7 +5,7 @@ export default defineConfig({
|
||||
root: 'src',
|
||||
build: {
|
||||
outDir: '../dist',
|
||||
assetsDir: '.assets',
|
||||
assetsDir: '_assets',
|
||||
emptyOutDir: true
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user