@stylable/core
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -17,3 +17,3 @@ import * as postcss from 'postcss'; | ||
constructor(classNameOptimizer?: StylableClassNameOptimizer, namespaceOptimizer?: StylableNamespaceOptimizer); | ||
minifyCSS(css: string): any; | ||
minifyCSS(css: string): string; | ||
optimize(config: OptimizeConfig, stylableResults: StylableResults, delimiter?: string, usageMapping?: Pojo<boolean>): void; | ||
@@ -20,0 +20,0 @@ removeStylableDirectives(root: postcss.Root, shouldComment?: boolean): void; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -10,2 +13,3 @@ if (mod && mod.__esModule) return mod; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var clean_css_1 = __importDefault(require("clean-css")); | ||
var postcss = __importStar(require("postcss")); | ||
@@ -23,4 +27,3 @@ var selector_utils_1 = require("../selector-utils"); | ||
StylableOptimizer.prototype.minifyCSS = function (css) { | ||
var CleanCSS = require('clean-css'); | ||
return new CleanCSS({}).minify(css).styles; | ||
return new clean_css_1.default({}).minify(css).styles; | ||
}; | ||
@@ -27,0 +30,0 @@ StylableOptimizer.prototype.optimize = function (config, stylableResults, delimiter, usageMapping) { |
{ | ||
"name": "@stylable/core", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "CSS for Components", | ||
@@ -26,3 +26,3 @@ "main": "./dist/src/index.js", | ||
"postcss-js": "^2.0.0", | ||
"postcss-nested": "^4.1.1", | ||
"postcss-nested": "^4.1.2", | ||
"postcss-safe-parser": "^4.0.1", | ||
@@ -34,3 +34,3 @@ "postcss-selector-matches": "^4.0.0", | ||
"devDependencies": { | ||
"@stylable/runtime": "^1.0.3" | ||
"@stylable/runtime": "^1.0.4" | ||
}, | ||
@@ -53,3 +53,3 @@ "files": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "c1482394cb94ebcd9e290f25e0d92ca36499fe08" | ||
"gitHead": "c8b12cc3c64557c6721beec89353b25adb8cc78c" | ||
} |
@@ -0,0 +0,0 @@ # @stylable/core |
@@ -0,0 +0,0 @@ import { Pojo } from './types'; |
@@ -0,0 +0,0 @@ import { cachedProcessFile, FileProcessor, MinimalFS } from './cached-process-file'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ export { safeParse } from './parser'; |
@@ -0,0 +0,0 @@ const deindent = require('deindent'); |
@@ -0,0 +0,0 @@ // MDN reference: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import { StylableMeta } from '../stylable-processor'; |
@@ -0,1 +1,2 @@ | ||
import CleanCSS from 'clean-css'; | ||
import * as postcss from 'postcss'; | ||
@@ -22,4 +23,3 @@ import { parseSelector, SelectorAstNode, traverseNode } from '../selector-utils'; | ||
public minifyCSS(css: string) { | ||
const CleanCSS = require('clean-css'); | ||
public minifyCSS(css: string): string { | ||
return new CleanCSS({}).minify(css).styles; | ||
@@ -26,0 +26,0 @@ } |
@@ -0,0 +0,0 @@ import postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import * as path from 'path'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import { Pojo, StateArguments } from './types'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import hash from 'murmurhash'; |
@@ -0,0 +0,0 @@ import { FileProcessor } from './cached-process-file'; |
@@ -0,0 +0,0 @@ import cloneDeep from 'lodash.clonedeep'; |
@@ -0,0 +0,0 @@ import cloneDeep from 'lodash.clonedeep'; |
@@ -0,0 +0,0 @@ import * as postcss from 'postcss'; |
@@ -0,0 +0,0 @@ import { FileProcessor, MinimalFS } from './cached-process-file'; |
@@ -0,0 +0,0 @@ export type Pojo<T = any> = { [key: string]: T } & object; |
@@ -0,0 +0,0 @@ export function hasKeys(o: {}) { |
export * from './dist/tests/utils/test-utils'; |
module.exports = require('./dist/tests/utils/test-utils'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1133018
15545
Updatedpostcss-nested@^4.1.2