Skip to content

Commit e78f886

Browse files
author
Baitu Huang
committed
update readme
1 parent 0c82505 commit e78f886

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

CHANGELOG.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
## vue-flags-webpack-plugin changelog
2-
### v1.0.0
3-
* features
4-
+ add `watch` option to support modify flags in development
5-
+ `flags` could also be a file or directory path
6-
+ plugin could be used in non-vue project
7-
+ support to use js expression as key in `files`
8-
+ report missing flags both in development and production
9-
* improvement
10-
+ remove vue `htmlparser` and use `compilerOptions.modules` to transform flag directives
11-
+ use loader instead of plugin to ignore files(modules)
12-
+ `namespace` is required now, change `files` options to `ignoreFiles`
13-
+ postcss plugin supports nest `@supports`
14-
+ fix bugs and better error tips and performance improvement
2+
### v1.0.0 🎉
3+
+ add `watch` option to support modify flags in development
4+
+ `flags` could also be a file path
5+
+ plugin could also be used in non-vue project
6+
+ support to use js expression as key in `ignoreFiles`
7+
+ postcss plugin supports nest `@supports` rules
8+
+ better log output both in development and production
9+
+ use `compilerOptions.modules` instead of `htmlparser` to process template
10+
+ use loader instead of plugin to filter files(modules)
11+
+ option `namespace` is required now
12+
+ option `files` is renamed `ignoreFiles`
13+
+ performance improvement
14+
+ do not support `webpack < 4`, `vue < 2.5.12`, `vue-loader < 15` anymore
15+
+ add lots of UT cases
1516

1617
### v0.2.0
1718
* update vue `htmlparser`

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ vue component:
117117
<style>
118118
p { color: yellow; }
119119
@supports (--flag: FLAG_A) {
120-
p { color: red; }
120+
p { font-size: 2em; }
121121
}
122122
@supports not ((--flag: FLAG_A) or (--flag: FLAG_B)) {
123-
p { font-size: 12px; }
123+
p { display: none; }
124124
}
125125
/**
126126
You must use "--flag" as custom property name
127127
see @supports: https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
128128
above will be transformed as:
129129
p { color: yellow; }
130-
p { color: red; }
130+
p { font-size: 2em; }
131131
*/
132132
</style>
133133
```

0 commit comments

Comments
 (0)