fela-preset-web
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -1,1 +0,1 @@ | ||
module.exports = require('fela/lib/presets/dev') | ||
module.exports = require('fela/lib/presets/web') |
{ | ||
"name": "fela-preset-web", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Fela plugin preset for web applications", | ||
@@ -21,4 +21,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"fela": "2.0.0" | ||
"fela": "3.0.0" | ||
} | ||
} |
@@ -1,10 +0,12 @@ | ||
# fela-preset-dev | ||
# fela-preset-web | ||
A Fela plugin preset for development. | ||
A Fela plugin preset for web applications.<br> | ||
It contains everything you need to start building cross-browser compatible apps. | ||
> Do **not** use this preset in production! | ||
#### Contains (exact order) | ||
* [fela-plugin-logger](../fela-plugin-logger/) | ||
* [fela-plugin-validator](../fela-plugin-validator/) | ||
* [fela-plugin-extend](../fela-plugin-extend/) | ||
* [fela-plugin-prefixer](../fela-plugin-prefixer/) | ||
* [fela-plugin-fallback-value](../fela-plugin-fallback-value/) | ||
* [fela-plugin-lvha](../fela-plugin-lvha/) | ||
* [fela-plugin-unit](../fela-plugin-unit/) | ||
@@ -14,11 +16,11 @@ | ||
```sh | ||
npm i --save fela-preset-dev | ||
npm i --save fela-preset-web | ||
``` | ||
Assuming you are using [npm](https://www.npmjs.com) as your package mananger you can just `npm install`.<br> | ||
Otherwise we also provide a [UMD](https://github.com/umdjs/umd). You can easily use it via [unpkg](https://unpkg.com/). It registers a `FelaPresetDev` global. | ||
Otherwise we also provide a [UMD](https://github.com/umdjs/umd). You can easily use it via [unpkg](https://unpkg.com/). It registers a `FelaPresetWeb` global. | ||
```HTML | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://unpkg.com/fela-preset-dev@2.0.0/dist/fela-preset-dev.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.0/dist/fela-preset-web.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://unpkg.com/fela-preset-dev@2.0.0/dist/fela-preset-dev.min.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.0/dist/fela-preset-web.min.js"></script> | ||
``` | ||
@@ -31,8 +33,8 @@ | ||
import { createRenderer } from 'fela' | ||
import devPreset from 'fela-preset-dev' | ||
import webPreset from 'fela-preset-web' | ||
const config = { | ||
plugins: [ | ||
// other plugins, | ||
...devPreset | ||
...webPreset, | ||
// other plugins | ||
] | ||
@@ -39,0 +41,0 @@ } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
92155
662
48
1