tailwindcss 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,8 +51,9 @@ function purgeUnusedUtilities(config) {
51
51
 
52
52
  if (Array.isArray(config.purge) && config.purge.length === 0) {
53
53
  (0, _utils.log)();
54
- (0, _utils.log)(emoji.warning, _chalk.default.yellow(' Skipping purge because no template paths provided.'));
55
- (0, _utils.log)(_chalk.default.white(' To silence this warning, set `purge: false` in your Tailwind config file.'));
54
+ (0, _utils.log)(emoji.warning, _chalk.default.yellow(' Tailwind is not purging unused styles because no template paths have been provided.'));
55
+ (0, _utils.log)(_chalk.default.white(' If you have manually configured PurgeCSS outside of Tailwind or are deliberately not\n removing unused styles, set `purge: false` in your Tailwind config file to silence\n this warning.'));
56
+ (0, _utils.log)(_chalk.default.white('\n https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css'));
56
57
  return removeTailwindComments;
57
58
  }
58
59
 
@@ -105,6 +105,10 @@ function _default(config, {
105
105
  }
106
106
 
107
107
  _lodash.default.forEach(_lodash.default.without(ensureIncludesDefault(variants), 'responsive'), variant => {
108
+ if (!variantGenerators[variant]) {
109
+ throw new Error(`Your config mentions the "${variant}" variant, but "${variant}" doesn't appear to be a variant. Did you forget or misconfigure a plugin that supplies that variant?`);
110
+ }
111
+
108
112
  variantGenerators[variant](atRule, config);
109
113
  });
110
114
 
@@ -31,7 +31,7 @@ function _default() {
31
31
  }];
32
32
  }));
33
33
 
34
- addUtilities(utilities, variants('textColor'));
34
+ addUtilities(utilities, variants('divideColor'));
35
35
  return;
36
36
  }
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -30,7 +30,7 @@
30
30
  "@babel/core": "^7.0.0",
31
31
  "@babel/node": "^7.0.0",
32
32
  "@babel/preset-env": "^7.0.0",
33
- "babel-jest": "^25.1.0",
33
+ "babel-jest": "^26.0.0",
34
34
  "clean-css": "^4.1.9",
35
35
  "eslint": "^6.0.1",
36
36
  "eslint-config-postcss": "^2.0.2",