Skip to content

Commit

Permalink
feat(core-styles): fp-1499 fractal style load opts
Browse files Browse the repository at this point in the history
Use the new styles context format to load styles for Fractal.
  • Loading branch information
wesleyboar committed Jul 12, 2022
1 parent d5d4a33 commit a6bb5d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions fractal.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ fractal.components.set('path',
);
fractal.components.set('default.context', {
styles: {
external: [
'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',
'/static/site_cms/css/build/site.css'
].concat(
( projectCSSFile ) ? [ '/' + projectCSSFile ] : []
)
external: {
global: [
'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',
'/static/site_cms/css/build/site.css'
].concat(
( projectCSSFile ) ? [ '/' + projectCSSFile ] : []
)
}
}
});

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6bb5d1

Please sign in to comment.