diff options
| author | Haishan <[email protected]> | 2019-11-17 17:31:59 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-11-17 17:31:59 +0800 |
| commit | c28ff93b67a3da5cbff0d2ffeddfc16fd1dd3438 (patch) | |
| tree | 0c3d6fd0964ffcb00078e4fda52ecd03e39b4dce /webpack.config.js | |
| parent | 0df74757914123d55b2a627efc7bda62fc9fd458 (diff) | |
refactor: improve UI for small screens
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index eafa1ca..1e79e43 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -101,6 +101,18 @@ const loaders = { plugins: () => [ require('postcss-import')(), + require('postcss-custom-media')({ + importFrom: [ + { + customMedia: { + '--breakpoint-not-small': 'screen and (min-width: 30em)', + '--breakpoint-medium': + 'screen and (min-width: 30em) and (max-width: 60em)', + '--breakpoint-large': 'screen and (min-width: 60em)' + } + } + ] + }), require('postcss-nested')(), require('autoprefixer')(), require('postcss-extend-rule')(), |
