Removed ReplaceSmilies from news
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 170 B |
@ -1,25 +0,0 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const mkdirp = require('mkdirp');
|
||||
|
||||
const baseAssetPath = {
|
||||
src: path.resolve('resources/assets'),
|
||||
target: path.resolve('public/assets')
|
||||
};
|
||||
|
||||
const emojiPath = {
|
||||
src: baseAssetPath.src + '/emojis',
|
||||
target: baseAssetPath.target + '/emojis'
|
||||
};
|
||||
|
||||
mkdirp.sync(emojiPath.target);
|
||||
|
||||
const emojis = fs.readdirSync(emojiPath.src);
|
||||
|
||||
emojis.forEach((e) => {
|
||||
fs.copyFile(`${emojiPath.src}/${e}`, `${emojiPath.target}/${e}`, (e) => {
|
||||
if (e) {
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
});
|