forked from tools/josh
1
0
Fork 0

Properly flatten copied files in deployment

This commit is contained in:
Florine W. Dekker 2021-03-31 17:32:55 +02:00
parent e152eb2ad4
commit b75d66b7a2
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
4 changed files with 4 additions and 4 deletions

View File

@ -8,16 +8,16 @@ module.exports = grunt => {
},
copy: {
css: {
files: [{expand: true, cwd: "src/main/css/", src: "**/*.css", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/*.css", dest: "dist/", flatten: true}]
},
html: {
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}]
},
images: {
files: [{expand: true, cwd: "src/main/img/", src: ["**/*.ico", "**/*.png", "**/*.svg"], dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: ["**/*.{ico,png,svg}"], dest: "dist/", flatten: true}]
},
pwa: {
files: [{expand: true, cwd: "src/main/", src: ["manifest.json", "sw.js"], dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: ["manifest.json", "sw.js"], dest: "dist/", flatten: true}]
},
},
focus: {

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB