Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
mixedstyle-loader
Advanced tools
loads mixed style imports e.g. sass/css/stylus from one file while maintaining their order
The loader that should not even exist. But who doesn't like to nurse a bunch of legacy code.
It consumes css files with css @import
statements and other css code.
The magic is that those @import
statements can go to any kind of css
or css
-precompiler file, as long as there is a proper loader existing and configured for it.
imagine you have 3 files a.css
, b.sass
, and c.scss
and you need to load them in the order:
* `c.scss`
* `b.sass`
* `a.css`
so you create a file d.css
which looks as follows:
@import 'c.scss';
@import 'b.sass';
@import 'a.css';
then you will probably run into a couple of issues:
css-loader
will fail trying to interpret sass
and scss
sass-loader
will hoist all *.css
imports assuming you are too stupid to know where they belongmixedstyle
to the rescue!assuming you still have your d.css
file just add this to your loader:
loaders: [
{
test: /\W?d\.css$/,
loader: "mixedstyle"
}
]
or probably you want to use it for the Extract-Text-Plugin, in that case do:
loaders: [
{
test: /\W?d\.css$/,
loader: ExtractTextPlugin.extract("style-loader", "mixedstyle")
}
]
or simply go for inline
var x = require('mixedstyle!./d.css');
//or
var x = require('style!mixedstyle!./d.css');
FAQs
loads mixed style imports e.g. sass/css/stylus from one file while maintaining their order
The npm package mixedstyle-loader receives a total of 325 weekly downloads. As such, mixedstyle-loader popularity was classified as not popular.
We found that mixedstyle-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.