@d-zero/postcss-config 5.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.postcssrc.js +14 -0
- package/CHANGELOG.md +10 -0
- package/README.md +33 -0
- package/package.json +23 -0
package/.postcssrc.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: {
|
|
3
|
+
'postcss-custom-media': true,
|
|
4
|
+
'postcss-math': true,
|
|
5
|
+
'postcss-calc': true,
|
|
6
|
+
'postcss-color-function': true,
|
|
7
|
+
'postcss-clip-path-polyfill': true,
|
|
8
|
+
autoprefixer: true,
|
|
9
|
+
'postcss-base64': {
|
|
10
|
+
pattern: /<svg.*<\/svg>/i,
|
|
11
|
+
prepend: 'data:image/svg+xml;base64,',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 5.0.0-alpha.1 (2024-05-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **repo:** first commit ([8d3d8e5](https://github.com/d-zero-dev/frontend-env/commit/8d3d8e54ba047d5431b958d7f28af026357a4886))
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# `@d-zero/postcss-config`
|
|
2
|
+
|
|
3
|
+
## 個別インストール
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
yarn add -D @d-zero/postcss-config
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 使い方
|
|
10
|
+
|
|
11
|
+
`.postcssrc.js`を作成し、設定を読み込みエクスポートします。
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import postcss from '@d-zero/postcss-config';
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
...postcss,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 拡張
|
|
22
|
+
|
|
23
|
+
プロジェクトに合わせて設定を追加します。
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import postcss from '@d-zero/postcss-config';
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
...postcss,
|
|
30
|
+
// autoprefixerを無効にする
|
|
31
|
+
autoprefixer: false,
|
|
32
|
+
};
|
|
33
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@d-zero/postcss-config",
|
|
3
|
+
"version": "5.0.0-alpha.1",
|
|
4
|
+
"description": "Configurations of PostCSS",
|
|
5
|
+
"repository": "https://github.com/d-zero-dev/frontend-env.git",
|
|
6
|
+
"author": "D-ZERO Co., Ltd.",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"private": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./.postcssrc.js",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"autoprefixer": "10.4.19",
|
|
13
|
+
"postcss": "8.4.38",
|
|
14
|
+
"postcss-base64": "0.7.1",
|
|
15
|
+
"postcss-calc": "10.0.0",
|
|
16
|
+
"postcss-clip-path-polyfill": "1.1.0",
|
|
17
|
+
"postcss-color-function": "4.1.0",
|
|
18
|
+
"postcss-custom-media": "10.0.6",
|
|
19
|
+
"postcss-math": "0.0.10",
|
|
20
|
+
"postcss-scss": "4.0.9"
|
|
21
|
+
},
|
|
22
|
+
"gitHead": "b091383f2e29092c703288cd99083a9a781f65b0"
|
|
23
|
+
}
|