Ignore index and cache files on user side by default. (#110)

This commit is contained in:
Swaneet
2022-10-16 08:27:38 +02:00
committed by GitHub
parent 0bc87f27f4
commit ad820cb2c9
3 changed files with 18 additions and 2 deletions

View File

@@ -103,3 +103,14 @@ jobs:
asset_path: ${{ env.DIST_FOLDER }}/styles.css
asset_name: styles.css
asset_content_type: text/css
- name: Upload .gitignore
id: upload-gitignore
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.DIST_FOLDER }}/.gitignore
asset_name: .gitignore
asset_content_type: text/plain

4
assets/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Exclude index and cache files on user side by default
*Cache.json
*Index.json
*.data

View File

@@ -36,8 +36,9 @@ export default {
base64({ include: '**/*.wasm' }),
copy({
targets: [
{ src: 'assets/styles.css', dest: 'dist' },
{ src: 'manifest.json', dest: 'dist' },
{ src: 'assets/styles.css', dest: 'dist' },
{ src: 'assets/.gitignore', dest: 'dist' },
],
}),
webWorkerLoader({ inline: true, forceInline: true, targetPlatform: "browser" }),