Socket
Socket
Sign inDemoInstall

shakecss

Package Overview
Dependencies
23
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.8 to 0.2.9

.idea/qaplug_profiles.xml

1

css-shaker.js

@@ -34,3 +34,2 @@ /**

const fcss = glob.sync(path.join(dirPath, '*.css'));
const fjs = glob.sync(path.join(dirPath, '*.js'));

@@ -37,0 +36,0 @@

{
"name": "shakecss",
"version": "0.2.8",
"version": "0.2.9",
"description": "Special thanks to the makers of purifycss. Modified version of purifycss that better works together with Angular2-Applications. Takes a stylesheet + a bundled js (e.g. packed angular2-application) and removes any unused style-selectors from the .css. This is something Webpack /Angular-CLI does not do when optimizing your code. You have to use e.g. ExtractText Webpack-Plugin to prevent your .css being inlined into to the .js-bundle.",

@@ -5,0 +5,0 @@ "main": "shakecss.js",

@@ -116,4 +116,6 @@ /*(MIT License)

regObj = /['"](.*?)["']/g;
//get all classes in the javascript object {'class':condition,'class2':condition2...}
regObj = /['"](.*?)[\\"']/g;
//execute above regex and join extracted classes separated by ' ' which will later get split again
ngClasses.forEach(c => classes.push(processExec(c, regObj, 1).join(' ')));

@@ -127,2 +129,3 @@

console.log(result);
//filter out duplicates

@@ -129,0 +132,0 @@ return result.filter(function (elem, index, self) {

@@ -1,5 +0,1 @@

"./src/app/common/hv-checkbox/hv-checkbox.component.html": function (e, t) {
e.exports = '<label class="ux-a-lead-checkbox ux-a-lead-checkbox--display-list">\n
[ngClass]="{'ux-a-test-class ux-a-nother':true,'leck-mich':false}"/>
[ngClass]="{\'ux-state-a-text-input--focused\'

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc