svelte-preprocess
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -1,4 +0,9 @@ | ||
# [3.1.0](https://github.com/kaisermann/svelte-preprocess/compare/v3.0.2...v3.1.0) (2019-09-03) | ||
## [3.1.1](https://github.com/kaisermann/svelte-preprocess/compare/v3.0.2...v3.1.1) (2019-09-10) | ||
### Bug Fixes | ||
* 🐛 make [@keyframe](https://github.com/keyframe) at-rules global. ([#65](https://github.com/kaisermann/svelte-preprocess/issues/65)) ([0b6a87b](https://github.com/kaisermann/svelte-preprocess/commit/0b6a87b)) | ||
### Features | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "svelte-preprocess", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"license": "MIT", | ||
@@ -56,3 +56,3 @@ "main": "src/index.js", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"jest": "^24.1.0", | ||
"jest": "^24.9.0", | ||
"less": "^3.9.0", | ||
@@ -59,0 +59,0 @@ "node-sass": "^4.12.0", |
@@ -26,3 +26,5 @@ # Svelte Preprocess | ||
- [`pug`](#pug) | ||
- [FAQ](#FAQ) | ||
- [FAQ](#faq) | ||
- [My VS Code is displaying a lot of errors on my templates when I try to use `x`...](#my-vs-code-is-displaying-a-lot-of-errors-on-my-templates-when-i-try-to-use-x) | ||
- [My `typescript` compilation is sloooooooow](#my-typescript-compilation-is-sloooooooow) | ||
@@ -325,6 +327,9 @@ <!-- /code_chunk_output --> | ||
* Define which tag should `svelte-preprocess` look for markup content. | ||
* | ||
* This is only used if you desire to define your markup between this tag | ||
* or to import it from a external file. | ||
* | ||
* The example below means your markup can be defined inside a `<markup>` tag. | ||
**/ | ||
markupTagName: 'template', | ||
markupTagName: 'markup', | ||
/** | ||
@@ -331,0 +336,0 @@ * Extend the default language alias dictionary. |
const postcss = require('postcss') | ||
const globalifyPlugin = root => | ||
const globalifyPlugin = root => { | ||
root.walkAtRules(/keyframes$/, atrule => { | ||
if (!atrule.params.startsWith('-global-')) { | ||
atrule.params = '-global-' + atrule.params | ||
} | ||
}) | ||
root.walkRules(rule => { | ||
@@ -13,2 +19,3 @@ if (rule.parent && rule.parent.name === 'keyframes') { | ||
}) | ||
} | ||
@@ -15,0 +22,0 @@ module.exports = async ({ content, filename, map = undefined }) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46824
784
468