Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
esbuild-style-plugin
Advanced tools
Another esbuild plugin for your styling with CSS,SASS,LESS,STYLUS
Another esbuild plugin for your styling.
postcss.config.js
config file - if path is provided in postcssConfigFile
optionnpm i -D esbuild-style-plugin
Look at the test files or here is a basic example
import stylePlugin from 'esbuild-style-plugin'
//const stylePlugin = require('esbuild-style-plugin')
esbuild.build({
plugins: [
stylePlugin()
]
})
extract
default to truecssModulesMatch
match .module.
by defaultcssModulesOptions
https://github.com/madyankin/postcss-modules#usagerenderOptions
sassOptions
https://sass-lang.com/documentation/js-api#optionslessOptions
https://lesscss.org/usage/#less-optionsstylusOptions
https://stylus-lang.com/docs/js.htmlpostcss
plugins
array of postcss accepted pluginsparser
| syntax
parse source css - use with postcss-scsspostcssConfigFile
absolute path to postcss.config.js
or true
for using root folder pathThe plugin does not come with all preprocessor installed since you might not need all of them.
Install the ones you need!
npm i -D sass
npm i -D less
npm i -D stylus
A specific use case that this plugin covers is SSR.
Using extract: false
will not process css on server side but will keep css mapping for css modules.
The plugin is using PostCSS to handle css modules files.
You can include any other plugins with the postcss
option.
Do not use cssnano plugin. It won't work and if it did it minifies all files seperatly (slow not efficient). Just let esbuild minify and do his job.
If you want to be able to use import styles from 'styles.module.sass'
without any errors
Just add esbuild-style-plugin
to your types in tsconfig.json
FAQs
Another esbuild plugin for your styling with CSS,SASS,LESS,STYLUS
The npm package esbuild-style-plugin receives a total of 16,978 weekly downloads. As such, esbuild-style-plugin popularity was classified as popular.
We found that esbuild-style-plugin demonstrated a not healthy version release cadence and project activity because the last version was released 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.