We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.
Files that start with a ., e.g. .htaccess, seems to confuse the copy loader.
.htaccess
copy
Using a relative path:
build({ entryPoints: ['./packages/website/assets/.htaccess'], outdir: './build/', loader: { '.htaccess': 'copy' }, }).catch(() => process.exit(1));
result in a file assets.htaccess copied into the ./build directory.
assets.htaccess
./build
Using an absolute path:
build({ entryPoints: ['/Users/arno/dev/packages/website/assets/.htaccess'], outdir: './build/', loader: { '.htaccess': 'copy' }, }).catch(() => process.exit(1));
result in a file ..htaccess copied into the ./build directory (note the double .).
..htaccess
I was expecting the file .htaccess to be copied into the ./build directory.
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'll work on a fix.
Sorry, something went wrong.
6c25c9e
No branches or pull requests
Files that start with a
.
, e.g..htaccess
, seems to confuse thecopy
loader.Using a relative path:
result in a file
assets.htaccess
copied into the./build
directory.Using an absolute path:
result in a file
..htaccess
copied into the./build
directory (note the double.
).I was expecting the file
.htaccess
to be copied into the./build
directory.The text was updated successfully, but these errors were encountered: