瀏覽代碼

Fix a bug in tools/copy.js (#90)

fixes the following error on `npm run build`:
```js
CpyError: Cannot glob `static/**/*`: Cannot copy from `static/media` to `build/media`: cannot read from `static/media`: EISDIR: illegal operation on a directory, read
    at node_modules/cpy/index.js:65:10
Caused By: Error: EISDIR: illegal operation on a directory, read
    at Error (native)
```
Christiaan Maks 9 年之前
父節點
當前提交
4fb8281577
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/copy.js

+ 1 - 1
tools/copy.js

@@ -15,4 +15,4 @@ const task = require('./task');
  * Copies static files such as robots.txt, favicon.ico to the
  * output (build) folder.
  */
-module.exports = task('copy', cpy(['static/**/*'], 'build'));
+module.exports = task('copy', cpy(['static/**/*.*'], 'build'));