Skip to content

Commit

Permalink
[CIVIC-1946] Fixed asset nesting directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cole committed Oct 16, 2024
1 parent 0ad87f4 commit ad592bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions web/themes/contrib/civictheme/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ function build(options = {}) {
getStyleImport(STYLE_THEME_FILE_IN, PATH),
].join('\n')

// Compile the styles.
const compiled = sass.compileString(stylecss, { loadPaths: [COMPONENT_DIR, PATH] })
fs.writeFileSync(STYLE_FILE_OUT, compiled.css, 'utf-8')
console.log(`Saved: Component styles`)
Expand Down Expand Up @@ -235,7 +234,7 @@ function build(options = {}) {

// --------------------------------------------------------------------------- ASSETS
if (config.assets) {
runCommand(`rsync -a --delete --exclude js --exclude sass ${DIR_ASSETS_IN} ${DIR_ASSETS_OUT}`)
runCommand(`rsync -a --delete --exclude js --exclude sass ${DIR_ASSETS_IN}/ ${DIR_ASSETS_OUT}/`)
}

// --------------------------------------------------------------------------- FINISH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ function build(options = {}) {
getStyleImport(STYLE_THEME_FILE_IN, PATH),
].join('\n')

// Compile the styles.
const compiled = sass.compileString(stylecss, { loadPaths: [COMPONENT_DIR, PATH] })
fs.writeFileSync(STYLE_FILE_OUT, compiled.css, 'utf-8')
console.log(`Saved: Component styles`)
Expand Down Expand Up @@ -235,7 +234,7 @@ function build(options = {}) {

// --------------------------------------------------------------------------- ASSETS
if (config.assets) {
runCommand(`rsync -a --delete --exclude js --exclude sass ${DIR_ASSETS_IN} ${DIR_ASSETS_OUT}`)
runCommand(`rsync -a --delete --exclude js --exclude sass ${DIR_ASSETS_IN}/ ${DIR_ASSETS_OUT}/`)
}

// --------------------------------------------------------------------------- FINISH
Expand Down

0 comments on commit ad592bc

Please sign in to comment.