mirror of
https://github.com/akveo/eva-icons.git
synced 2025-09-03 10:53:08 +02:00
feat(builder): update style builder, rename folder, rename css file (#6)
This commit is contained in:
committed by
Dmitry Nehaychik
parent
f2d61c4e5b
commit
ac5478ac0f
@@ -22,8 +22,8 @@ const webFontOptions = {
|
||||
};
|
||||
|
||||
const buildFont = () => {
|
||||
const dest = path.join(config.desPath, '/css/fonts');
|
||||
const destTemplate = path.join(config.desPath, '/css');
|
||||
const dest = path.join(config.desPath, '/style/fonts');
|
||||
const destTemplate = path.join(config.desPath, '/style');
|
||||
|
||||
fileSystemHelper.mkDirByPathSync(dest);
|
||||
|
||||
@@ -47,7 +47,7 @@ const buildFont = () => {
|
||||
if (type !== 'template') {
|
||||
file = path.resolve(dest, `${fontName}.${type}`);
|
||||
} else {
|
||||
file = path.resolve(destTemplate, `${fontName}.${template}`);
|
||||
file = path.resolve(destTemplate, `${fontName.toLowerCase()}.${template}`);
|
||||
}
|
||||
|
||||
return fs.outputFile(file, content);
|
||||
|
@@ -58,7 +58,7 @@ $eva-icons-font-family: 'Eva-Icons' !default;
|
||||
|
||||
const genScssFont = (scssRoot) => {
|
||||
const buildScss = './_eva-icons-font.scss';
|
||||
const buildCss = path.join(config.desPath, 'css/Eva-Icons.css');
|
||||
const buildCss = path.join(config.desPath, 'style/eva-icons.css');
|
||||
const file = fs.readFileSync(buildCss).toString();
|
||||
const content = file
|
||||
.replace(/"/g, '\'')
|
||||
@@ -81,7 +81,7 @@ const genScssFont = (scssRoot) => {
|
||||
};
|
||||
|
||||
const processScss = () => {
|
||||
const scssRoot = path.join(config.desPath, '/css/scss');
|
||||
const scssRoot = path.join(config.desPath, '/style/scss');
|
||||
|
||||
fileSystemHelper.mkDirByPathSync(scssRoot);
|
||||
|
||||
|
Reference in New Issue
Block a user