Gathering detailed insights and metrics for precsss
Gathering detailed insights and metrics for precsss
Gathering detailed insights and metrics for precsss
Gathering detailed insights and metrics for precsss
npm install precsss
Typescript
Module System
Min. Node Version
Node Version
NPM Version
CSS (57.53%)
JavaScript (42.47%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
CC0-1.0 License
85 Commits
1 Branches
1 Contributors
Updated on Jan 31, 2023
Latest Version
4.0.2
Package Id
precsss@4.0.2
Unpacked Size
13.86 kB
Size
5.02 kB
File Count
5
NPM Version
8.19.2
Node Version
18.12.0
Published on
Feb 01, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
PreCSSS lets you use Sass-like markup and staged CSS features in CSS.
1$blue: #056ef0; 2$column: 200px; 3 4.menu { 5 width: calc(4 * $column); 6} 7 8.menu_link { 9 background: $blue; 10 width: $column; 11} 12 13/* becomes */ 14 15.menu { 16 width: calc(4 * 200px); 17} 18 19.menu_link { 20 background: #056ef0; 21 width: 200px; 22}
PreCSSS combines Sass-like syntactical sugar — like variables, conditionals, and iterators — with emerging CSS features — like logical and custom properties, media query ranges, and image sets.
Add PreCSSS to your build tool:
1npm install PreCSSSs --save-dev 2 3or 4 5yarn add -D PreCSSSs
Use PreCSSS to process your CSS:
1import PreCSSS from 'PreCSSS'; 2 3PreCSSS.process(YOUR_CSS);
Add PostCSS to your build tool:
1npm install postcss --save-dev
Use PreCSSS as a plugin:
1import postcss from 'postcss'; 2import PreCSSS from 'PreCSSS'; 3 4postcss([ 5 PreCSSS(/* options */) 6]).process(YOUR_CSS);
Add Gulp PostCSS to your build tool:
1npm install gulp-postcss --save-dev
Use PreCSSS in your Gulpfile:
1import postcss from 'gulp-postcss'; 2import PreCSSS from 'PreCSSS'; 3 4gulp.task('css', function () { 5 return gulp.src('./src/*.css').pipe( 6 postcss([ 7 PreCSSS(/* options */) 8 ]) 9 ).pipe( 10 gulp.dest('.') 11 ); 12});
Add Grunt PostCSS to your build tool:
1npm install grunt-postcss --save-dev
Use PreCSSS in your Gruntfile:
1import PreCSSS from 'PreCSSS'; 2 3grunt.loadNpmTasks('grunt-postcss'); 4 5grunt.initConfig({ 6 postcss: { 7 options: { 8 use: [ 9 PreCSSS(/* options */) 10 ] 11 }, 12 dist: { 13 src: '*.css' 14 } 15 } 16});
PreCSSS is powered by the following plugins (in this order):
No vulnerabilities found.
No security vulnerabilities found.