新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
57 lines
1.4 KiB
Markdown
57 lines
1.4 KiB
Markdown
# PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci]
|
|
|
|
[PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.
|
|
|
|
[PostCSS]: https://github.com/postcss/postcss
|
|
[css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg
|
|
[css]: https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property
|
|
[ci-img]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg
|
|
[ci]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap
|
|
|
|
|
|
```css
|
|
/* before */
|
|
.foo {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
/* after */
|
|
.foo {
|
|
word-wrap: break-word;
|
|
}
|
|
```
|
|
|
|
```css
|
|
/* before, when the option { method: 'copy' } is passed */
|
|
.foo {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
/* after */
|
|
.foo {
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
```
|
|
|
|
### Installation
|
|
`npm install --save-dev postcss postcss-replace-overflow-wrap`
|
|
|
|
For Postcss 7 or earlier use Version 3 or earlier:
|
|
|
|
`npm install --save-dev postcss-replace-overflow-wrap@3`
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
/* default usage, with no options (method = replace) */
|
|
postcss([ require('postcss-replace-overflow-wrap') ])
|
|
```
|
|
|
|
```js
|
|
/* add word-wrap, but keep overflow-wrap */
|
|
postcss([ require('postcss-replace-overflow-wrap') ])({ method: 'copy' })
|
|
```
|
|
See [PostCSS] docs for examples for your environment.
|