Files
2024-03-08 01:46:32 +00:00

22 lines
475 B
JavaScript

const fs = require('fs-extra');
const path = require('path');
/**
* Copy the CSS from the core package to the react package.
*
* This allows developers to import the global stylesheets
* from the @ionic/react package instead of @ionic/core.
*/
function copyCSS() {
const src = path.join(__dirname, '..', '..', 'core', 'css');
const dst = path.join(__dirname, '..', 'css');
fs.removeSync(dst);
fs.copySync(src, dst);
}
function main() {
copyCSS();
}
main();