1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-08 14:16:58 +02:00

Remove postcss import options

This commit is contained in:
Felix
2020-05-30 17:58:04 -05:00
parent 03d3815d39
commit d58953136b

View File

@@ -52,9 +52,6 @@ const formatByteMessage = (source, data) => {
} }
const style = () => { const style = () => {
// Don't inline minified versions, so builds can lazily import them at runtime
const cssImportOptions = { filter: (path) => !/\.min/.test(path) }
const startDiff = () => bytediff.start() const startDiff = () => bytediff.start()
const endDiff = (source) => bytediff.stop((data) => formatByteMessage(source, data)) const endDiff = (source) => bytediff.stop((data) => formatByteMessage(source, data))
@@ -62,7 +59,7 @@ const style = () => {
gulp gulp
.src(paths.styles.src) .src(paths.styles.src)
.pipe(sourcemaps.init()) .pipe(sourcemaps.init())
.pipe(postcss([postcssImport(cssImportOptions), postcssColorModFunction(), postcssInlineSvg()])) .pipe(postcss([postcssImport(), postcssColorModFunction(), postcssInlineSvg()]))
.pipe(startDiff()) .pipe(startDiff())
.pipe(postcss([postcssCssVariables({ preserve: true })])) .pipe(postcss([postcssCssVariables({ preserve: true })]))