postcss.config.js 472 B

123456789101112131415
  1. console.log(
  2. '\x1B[0;37;44m INFO \x1B[0m',
  3. '\x1B[0;;34m ' +
  4. `读取了: ${__filename.slice(__dirname.length + 1)}` +
  5. ' \x1B[0m'
  6. );
  7. // 把.browserslistrc的last 2 version改成last 20 version就可以看到明显效果
  8. module.exports = {
  9. plugins: [
  10. // 'autoprefixer', // postcss-preset-env包含了autoprefixer的功能
  11. 'postcss-preset-env', // 简写,具体看各个插件的官网提供几种写法
  12. // require('postcss-preset-env'),
  13. ],
  14. };