Skip to content

Commit

Permalink
Merge pull request #17 from CanopyTax/2.1.1-fix-keyframes
Browse files Browse the repository at this point in the history
v2.1.1 - fix keyframes
  • Loading branch information
geoctrl authored May 2, 2022
2 parents 5f61a0d + 579f6e6 commit 1b3b16a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion dev-env/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
input .test {
text-align: center;
}
animation: my-animation;
}

@keyframes my-animation {
from {
background-color: red;
}
to {
background-color: blue;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kremling-loader",
"version": "2.1.0",
"version": "2.1.1",
"main": "index.js",
"author": "@geoctrl",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/postcss-kremling-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = ({ id, namespace }) => {
const output = parser(selectors => {
if (left) {
const s = selectors.first.first;
if (s.type === 'pseudo') {
if (s.type === 'pseudo' || s.type === 'tag') {
if (s.value === ':global') {
s.remove();
}
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ config.module = {
plugins: {
'autoprefixer': {},
'cssnano': {},
},
},
},
},
},
Expand All @@ -34,4 +34,4 @@ config.devServer = {
contentBase: path.resolve(__dirname, 'dev-env')
};

module.exports = config;
module.exports = config;

0 comments on commit 1b3b16a

Please # to comment.