PostCSS media revers plugin.
/* Input example */
.foo {
color: #7f7f7f;
width: 100px;
}
/* Output example */
@media (min-width: 1281px) {
.foo {
color: #7f7f7f;
width: 100px;
}
}
Media point Integration point for a task
Ban check file includes
Exclude all files to regular path
/* Input example */
.foo {
color: #7f7f7f;
width: 100px;
}
/* Output example */
@media (min-width: 1281px) {
.foo {
width: 100px;
}
}
Step 1: Install plugin:
npm install --save-dev postcss postcss-media-revers
Step 2: Check you project for existed PostCSS config: postcss.config.js
in the project root, "postcss"
section in package.json
or postcss
in bundle config.
If you do not use PostCSS, add it according to official docs and set this plugin in settings.
Step 3: Add the plugin to plugins list:
module.exports = {
plugins: {
+ 'postcss-media-revers': {
revertMediaPoint: Int,
banNames: ['fileName']
}
}
}