@newhighsco/postcss-config 3.5.302 → 3.5.304
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/index.js +8 -5
- package/package.json +3 -3
- package/purgecss.js +5 -4
package/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
const postcssFlexbugsFixes = require('postcss-flexbugs-fixes')
|
|
2
|
+
const postcssPresetEnv = require('postcss-preset-env')
|
|
3
|
+
|
|
1
4
|
/** @type {import('postcss-load-config').Config} */
|
|
2
5
|
module.exports = {
|
|
3
|
-
plugins:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
plugins: [
|
|
7
|
+
postcssFlexbugsFixes(),
|
|
8
|
+
postcssPresetEnv({
|
|
6
9
|
autoprefixer: {
|
|
7
10
|
flexbox: 'no-2009'
|
|
8
11
|
},
|
|
@@ -10,6 +13,6 @@ module.exports = {
|
|
|
10
13
|
features: {
|
|
11
14
|
'custom-properties': false
|
|
12
15
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
16
|
+
})
|
|
17
|
+
]
|
|
15
18
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newhighsco/postcss-config",
|
|
3
3
|
"description": "New High Score shareable config for PostCSS",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.304",
|
|
5
5
|
"author": "New High Score",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"private": false,
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:purge": "postcss __tests__/*.css --config __tests__/config/purgecss --output dist/purgecss.css"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@fullhuman/postcss-purgecss": "
|
|
28
|
+
"@fullhuman/postcss-purgecss": "7.0.2",
|
|
29
29
|
"autoprefixer": "10.4.20",
|
|
30
|
-
"caniuse-lite": "1.0.
|
|
30
|
+
"caniuse-lite": "1.0.30001690",
|
|
31
31
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
32
32
|
"postcss-preset-env": "10.1.2"
|
|
33
33
|
},
|
package/purgecss.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
const { plugins } = require('.')
|
|
2
|
+
const { purgeCSSPlugin } = require('@fullhuman/postcss-purgecss')
|
|
2
3
|
|
|
3
4
|
/** @type {import('postcss-load-config').Config} */
|
|
4
5
|
module.exports = {
|
|
5
|
-
plugins:
|
|
6
|
+
plugins: [
|
|
6
7
|
...plugins,
|
|
7
|
-
|
|
8
|
+
purgeCSSPlugin({
|
|
8
9
|
content: [
|
|
9
10
|
'./node_modules/@newhighsco/{chipset,press-start}/**/*.[j|t]s?(x)',
|
|
10
11
|
'./src/{components,layouts,pages}/**/*.[j|t]s?(x)'
|
|
11
12
|
],
|
|
12
13
|
safelist: [/^:(global|export)/, 'html', 'body']
|
|
13
|
-
}
|
|
14
|
-
|
|
14
|
+
})
|
|
15
|
+
]
|
|
15
16
|
}
|