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.
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
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
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.