
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
bulma-loader
Advanced tools
A Webpack loader for Bulma, a modern CSS framework based on Flexbox
If you want to customize Bulma while using it in CSS modules this loader is for you.
For everyone else who just want to customize Bulma in their project or isn't familiar with CSS modules yet follow step 3 in the official docs: http://bulma.io/documentation/overview/start/
Assuming you put your variables here: ./sass/bulma.sass
{
test: /\.scss$/,
loaders: ["style", "css?modules&importLoaders=2", "sass", "bulma?theme=sass/bulma.sass"]
}
Inside your webpack config object:
{
[ ... ]
bulmaLoader: {
theme: 'sass/bulma.sass'
},
plugins: [
{
test: /\.scss$/,
loaders: ["style", "css?modules&importLoaders=2", "sass", "bulma"]
}
]
}
Assuming your style codebase is already split into modules and local by default:
./src/components/Welcome/style.scss
.hero {
composes: hero is-fullheight is-success is-bold from 'bulma';
}
.hero-content {
composes: hero-content from 'bulma';
opacity: .9;
}
.title {
composes: title is-3 from 'bulma';
}
.subtitle {
composes: subtitle is-5 from 'bulma';
}
./src/components/Welcome/index.jsx
import style from './style.scss'
export const Welcome = () => <div className={style.hero}>
<div className={style['hero-content']}>
<h1 className={style.title}>Welcome!</h1>
<h2 className={style.subtitle}>Long time no see :-)</h2>
</div>
</div>
Importing from 'bulma' will map to ./node_modules/bulma/bulma.sass. You can import from any sass file in bulma by doing this:
.call-to-action {
composes: button is-primary is-large from 'bulma/sass/elements/button.sass'
}
You can also import from the CSS file directly like this (and it works without bulma-loader):
.call-to-action {
composes: button is-primary is-large from 'bulma/css/bulma.css'
}
FAQs
A Webpack loader for Bulma, a modern CSS framework based on Flexbox
The npm package bulma-loader receives a total of 4 weekly downloads. As such, bulma-loader popularity was classified as not popular.
We found that bulma-loader 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.