From ecdaf0e34a177a15e9ec4d81021a61f79adaf7fb Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 7 Oct 2017 18:49:35 +0300 Subject: [PATCH] Run autoprefixer for examples' CSS too. --- build/postcss.config.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/postcss.config.js b/build/postcss.config.js index b34a0ce467..1f2be8b7c1 100644 --- a/build/postcss.config.js +++ b/build/postcss.config.js @@ -1,7 +1,7 @@ 'use strict' module.exports = (ctx) => ({ - map: ctx.file.dirname.startsWith('docs') ? false : { + map: ctx.file.dirname.startsWith('docs') || ctx.file.dirname.includes('examples') ? false : { inline: false, annotation: true, sourcesContent: true diff --git a/package.json b/package.json index d03e145316..619d8b1ee3 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "css-lint": "stylelint --config build/.stylelintrc --syntax scss \"scss/**/*.scss\"", "css-lint-docs": "stylelint --config build/.stylelintrc --syntax scss \"assets/scss/*.scss\"", "css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\"", - "css-prefix-docs": "postcss --config build/postcss.config.js --no-map --replace assets/css/docs.min.css", + "css-prefix-docs": "postcss --config build/postcss.config.js --replace \"assets/css/docs.min.css\" \"docs/**/*.css\"", "css-minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap.min.css dist/css/bootstrap.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-grid.min.css dist/css/bootstrap-grid.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-reboot.min.css dist/css/bootstrap-reboot.css", "css-minify-docs": "cleancss --level 1 --source-map --source-map-inline-sources --output assets/css/docs.min.css assets/css/docs.min.css", "js": "npm-run-all js-lint* js-compile* js-minify*",