mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
19 lines
463 B
JavaScript
19 lines
463 B
JavaScript
const fs = require('fs-extra');
|
|
const path = require('path');
|
|
|
|
/**
|
|
* Copy the CSS from the core package to the angular package.
|
|
*
|
|
* This allows developers to import the global stylesheets
|
|
* from the @ionic/angular package instead of @ionic/core.
|
|
*/
|
|
function copyCSS() {
|
|
const src = path.join(__dirname, '..', '..', '..', 'core', 'css');
|
|
const dst = path.join(__dirname, '..', 'dist', 'css');
|
|
|
|
fs.removeSync(dst);
|
|
fs.copySync(src, dst);
|
|
}
|
|
|
|
copyCSS();
|