0.0.5 • Published 7 years ago

@nju33/postcss-preset v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Postcss preset

XO code style

Preset for nju33.

Install

yarn add -D @nju33/postcss-preset
postcss([
  ...preset(),
  /* other plugins */
])

Plugins

"dependencies": {
  "autoprefixer": "^6.7.7",
  "css-mqpacker": "^5.0.1",
  "cssnano": "^3.10.0",
  "postcss-animation": "^0.0.12",
  "postcss-assets": "^4.1.0",
  "postcss-colorblind": "^1.0.0",
  "postcss-easings": "^0.3.0",
  "postcss-flexbugs-fixes": "^2.1.0",
  "postcss-focus": "^1.0.0",
  "postcss-font-magician": "^1.6.1",
  "postcss-modules": "^0.6.4",
  "postcss-octicon": "^0.0.1",
  "postcss-resemble-image": "^2.1.1",
  "postcss-sprites": "^4.2.0",
  "postcss-will-change": "^1.1.0",
  "postcss-yu-gothic": "^0.0.5"
},

Options

const default = {
  // To specify the root path
  // (postcssAssets.basePath, postcssAssets.baseURL)
  bases: ['.', '/'],
  // That of `autoprefixer.browsers`
  browsers: ['> 3%', 'last 2 versions'],
  // Setting `postcssFontMagician.variants`
  variants: {},
  // Specify project image directory
  // (`postcssAssets.loadPaths`)
  imagePaths: [],
  // Specify whether to modularize
  // (`postcssModules`)
  module: false, // or `({fileName, json}) => {}`
  // Minify if it is true
  // (`cssMqpacker` & `cssnano`)
  minify: false // or `true`
}

Lisence

The MIT License (MIT)

Copyright (c) 2017 nju33 nju33.ki@gmail.com