🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hao360/cube-css-loader

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hao360/cube-css-loader - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+4
-5
index.js
const css = require('css');
const loaderUtils = require('loader-utils');
global.cubeWcssData = global.cubeWcssData || {};
/** 添加样式命名空间前缀 */

@@ -30,3 +32,3 @@ function addPrefix(cssAst, preSelector, widthRules){

i+= expandRule.rules.length - 1;
} else if (/^(min\-width|max\-width|width)\:\s+\d+(px)?/.test(cubeRule)) {
} else if (/^(min\-width|max\-width|width)\:\s*\d+(px)?/.test(cubeRule)) {
/** 宽度数据 */

@@ -97,6 +99,3 @@ let widthRuleObj = cubeRule.split(':');

const wcssData = responsiveWidth(widthRules, options.compress);
if(!global.cubeWcssData){
global.cubeWcssData = []
}
global.cubeWcssData = global.cubeWcssData.concat(wcssData);
global.cubeWcssData[this.resourcePath] = wcssData;
}

@@ -103,0 +102,0 @@

{
"name": "@hao360/cube-css-loader",
"version": "1.1.0",
"version": "1.1.1",
"description": "cube css loader",

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