Copy assets to dist folder at dist step
This commit is contained in:
parent
876d509f10
commit
575de5ebb1
@ -16,3 +16,7 @@ fs.mkdirSync('dist/types', {recursive: true});
|
|||||||
fs.readdirSync('src/types').forEach(file => {
|
fs.readdirSync('src/types').forEach(file => {
|
||||||
copyRecursively(path.join('src/types', file), 'dist/types');
|
copyRecursively(path.join('src/types', file), 'dist/types');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fs.readdirSync('src/assets').forEach(file => {
|
||||||
|
copyRecursively(path.join('src/assets', file), 'dist/assets');
|
||||||
|
});
|
||||||
|
@ -18,10 +18,5 @@ if (!fs.existsSync(symlink)) {
|
|||||||
fs.symlinkSync(path.resolve('dist/common'), symlink);
|
fs.symlinkSync(path.resolve('dist/common'), symlink);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy assets
|
|
||||||
fs.readdirSync('src/assets').forEach(file => {
|
|
||||||
copyRecursively(path.join('src/assets', file), 'dist/assets');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Copy package.json
|
// Copy package.json
|
||||||
fs.copyFileSync('package.json', 'dist/package.json');
|
fs.copyFileSync('package.json', 'dist/package.json');
|
||||||
|
Loading…
Reference in New Issue
Block a user