-
Notifications
You must be signed in to change notification settings - Fork 0
Preload fonts + real theme flicker fix + mixins for theme + deps updates + nvm update #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10 | ||
16.20.2 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ const ospath = require('path') | |
const path = ospath.posix | ||
const postcss = require('gulp-postcss') | ||
const postcssCalc = require('postcss-calc') | ||
const postcssNesting = require('postcss-nesting') | ||
const postcssNested = require('postcss-nested') | ||
const postcssAdvancedVars = require('postcss-advanced-variables') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. postcss-advanced-variables gives us mixins |
||
const postcssImport = require('postcss-import') | ||
const postcssUrl = require('postcss-url') | ||
const postcssVar = require('postcss-custom-properties') | ||
|
@@ -48,9 +49,9 @@ module.exports = (src, dest, preview) => () => { | |
}, | ||
}, | ||
]), | ||
postcssNesting, | ||
// NOTE because css vars are our theme switching mechanism we must preserve them with preserve: true | ||
postcssVar({ preserve: true }), | ||
postcssNested, | ||
postcssAdvancedVars, | ||
postcssVar({ preserve: preview }), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. after upgrading postcss-custom-variables and npm this works properly now when preserve is false for the production bundle |
||
// NOTE to make vars.css available to all top-level stylesheets, use the next line in place of the previous one | ||
//postcssVar({ importFrom: path.join(src, 'css', 'vars.css'), preserve: preview }), | ||
preview ? postcssCalc : () => {}, // cssnano already applies postcssCalc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After upgrading some packages, running with node 16 seems to be stable. Probably best to run with a more recent version and match version the datastax-docs-site repo uses