パッケージの詳細

postcss-mobile-only-mqs

laurenashpole32MIT0.0.2

PostCSS plugin to remove non-mobile media queries

postcss, css, postcss-plugin, media queries

readme

postcss-mobile-only-mqs

PostCSS plugin to remove non-mobile media queries.

body {
  font-size: 14px;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}
body {
  font-size: 14px;
}

Usage

Check your project for existing PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-exclude-blocks')(options),
    require('autoprefixer')
  ]
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.

Options

options.maxBreakpoint (string) To allow for larger mobile styling, media queries below this breakpoint will be preserved.

更新履歴

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.0.2 (2020-01-24)

Note: Version bump only for package postcss-mobile-only-mqs

0.0.1 (2020-01-13)

Note: Version bump only for package postcss-mobile-only-mqs