From 8c7c808e16ee89b6ec4c96f541875a44fa3b35b6 Mon Sep 17 00:00:00 2001 From: weiserhei Date: Mon, 7 May 2018 17:57:17 +0200 Subject: [PATCH] Quoting globstars Problem I ran into: `npm run build` only created the build/public/assets/css/app.css file, nothing else was copied. No Error showed up in Terminal. Solution: After reading the `copyfiles`-module readme I discovered you may have to put the path in quotation marks. Doing so fixed it and copied the whole public folders like its supposed to. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9a5937..250eb29 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "webpack-watch": "set NODE_ENV=0&& webpack --progress --color --watch --hot", "dev:sass": "node-sass -w -r src/css/ -o src/public/assets/css/", "dev:js": "set NODE_ENV=0&& webpack", - "build:dir": "copyfiles -u 1 src/public/**/* build/", + "build:dir": "copyfiles -u 1 'src/public/**/*' build/", "build:sass": "node-sass --output-style compressed src/css/ -o build/public/assets/css/", "build:js": "set NODE_ENV=1&& webpack --progress --color" },