Skip to content

Commit 49708e5

Browse files
committed
preserve css vars in build
1 parent 95fbc54 commit 49708e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gulp.d/tasks/build.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ module.exports = (src, dest, preview) => () => {
5959
// only run tailwindcss in preview, datastax-docs-site repo has it's own tailwind cli step
6060
preview ? tailwindcss(tailwindconfig) : () => {},
6161
postcssAdvancedVars,
62-
postcssVar({ preserve: preview }),
63-
// NOTE to make vars.css available to all top-level stylesheets, use the next line in place of the previous one
64-
//postcssVar({ importFrom: path.join(src, 'css', 'vars.css'), preserve: preview }),
62+
postcssVar({ preserve: true }),
6563
preview ? postcssCalc : () => {}, // cssnano already applies postcssCalc
6664
autoprefixer,
6765
preview

0 commit comments

Comments
 (0)