mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
22 lines
475 B
JavaScript
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();
|