Ignore index and cache files on user side by default. (#110)
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -102,4 +102,15 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ${{ env.DIST_FOLDER }}/styles.css
|
||||
asset_name: styles.css
|
||||
asset_content_type: text/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
4
assets/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Exclude index and cache files on user side by default
|
||||
*Cache.json
|
||||
*Index.json
|
||||
*.data
|
||||
@@ -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" }),
|
||||
|
||||
Reference in New Issue
Block a user