Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
css-mqpacker-webpack-plugin
Advanced tools
The Webpack plugin for pack same CSS media query rules into one using PostCSS
The Webpack plugin for pack same CSS media query rules into one using PostCSS.
npm i css-mqpacker-webpack-plugin --save-dev
# or
yarn add css-mqpacker-webpack-plugin -D
webpack.config.js
const CSSMQPackerPlugin = require('css-mqpacker-webpack-plugin');
module.exports = {
optimization: {
minimize: true,
minimizer: [
new CSSMQPackerPlugin(),
],
},
};
regExp
Type: RegExp
Default: /\.css$/i
A regular expression to match the asset name that the processor handles.
sort
Type: Boolean
Default: false
By default, CSS MQPacker pack and order media queries as they are defined (the “first win” algorithm). If you want to sort media queries automatically, pass sort: true
.
webpack.config.js
const CSSMQPackerPlugin = require('css-mqpacker-webpack-plugin');
module.exports = {
optimization: {
minimize: true,
minimizer: [
new CSSMQPackerPlugin({
regExp: /\.css$/i,
sort: false,
}),
],
},
};
FAQs
The Webpack plugin for pack same CSS media query rules into one using PostCSS
The npm package css-mqpacker-webpack-plugin receives a total of 122 weekly downloads. As such, css-mqpacker-webpack-plugin popularity was classified as not popular.
We found that css-mqpacker-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.