forked from wojtekmaj/react-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy-styles.js
33 lines (29 loc) · 982 Bytes
/
copy-styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const fs = require('fs');
fs.copyFile('src/Page/AnnotationLayer.css', 'dist/esm/Page/AnnotationLayer.css', (error) => {
if (error) {
throw error;
}
// eslint-disable-next-line no-console
console.log('AnnotationLayer.css copied successfully to ESM build.');
});
fs.copyFile('src/Page/AnnotationLayer.css', 'dist/umd/Page/AnnotationLayer.css', (error) => {
if (error) {
throw error;
}
// eslint-disable-next-line no-console
console.log('AnnotationLayer.css copied successfully to UMD build.');
});
fs.copyFile('src/Page/TextLayer.css', 'dist/esm/Page/TextLayer.css', (error) => {
if (error) {
throw error;
}
// eslint-disable-next-line no-console
console.log('TextLayer.css copied successfully to ESM build.');
});
fs.copyFile('src/Page/TextLayer.css', 'dist/umd/Page/TextLayer.css', (error) => {
if (error) {
throw error;
}
// eslint-disable-next-line no-console
console.log('TextLayer.css copied successfully to UMD build.');
});