Add assets task
This commit is contained in:
12
tasks/assets.js
Normal file
12
tasks/assets.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { copy } from 'fs-extra';
|
||||
import {
|
||||
assetsPath,
|
||||
distPath,
|
||||
} from './file';
|
||||
|
||||
copy(assetsPath(), distPath('assets'), (err) => {
|
||||
if (err) {
|
||||
return console.error(err);
|
||||
}
|
||||
console.log("copied assets");
|
||||
});
|
||||
Reference in New Issue
Block a user