
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
cssnext-brunch
Advanced tools
Use tomorrow's CSS syntax, today. Via Brunch.
Issues with the output should be reported on cssnext issue tracker.
Follow @cssnext to get latest news & join #cssnext on irc.freenode.net if you have any questions.
$ npm install cssnext-brunch
Add a cssnext section in the plugins section of your brunch config file
plugins:
cssnext:
sourcemap: true
features:
prefixes:
browsers:['> 5%', 'last 3 version', 'IE 8']
import:
path: 'app/css'
Options are directly passed to cssnext, so checkout cssnext options directly.
cssnext-brunch is a compile-type plugin, so it's play well optimizer like clean-css-brunch
For now, sourcemap is inlined in the generated css. If you want to enable cssnext sourcemap, you should disabled brunch default sourcemap.
Also, it seems that minification (via compress option or via another brunch plugin) broke sourcemap support.
By default, brunch concatenates css files. In order to take advantage of postcss-import, you'll need to add _ to filename (* @import "_filename.css"*.
You also need to specify import folder in the brunch config.
import: "app/css" for example.
When build for production, inlined sourcemap is disabled.
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/cssnext/cssnext-brunch.git
$ git checkout -b patch-1
$ npm install
$ npm test
FAQs
Use tomorrow's CSS syntax, today, using cssnext via brunch
The npm package cssnext-brunch receives a total of 1 weekly downloads. As such, cssnext-brunch popularity was classified as not popular.
We found that cssnext-brunch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.