@soleil-se/build-app 2.0.2 → 2.1.0
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/CHANGELOG.md +5 -0
- package/package.json +7 -7
- package/rollup/api/getPostcssPlugin.js +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ title: Changelog
|
|
|
4
4
|
|
|
5
5
|
Baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) och använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.1.0] - 2024-11-18
|
|
8
|
+
|
|
9
|
+
- Använd [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env#readme) för att göra modern CSS bakåtkompatibel.
|
|
10
|
+
- Ta bort `autoprefixer`, är del av `postcss-preset-env`.
|
|
11
|
+
|
|
7
12
|
## [2.0.2] - 2024-10-28
|
|
8
13
|
|
|
9
14
|
- Gör om variabelnamnen till camelCase i `rollup-plugin-sitevision` för att möjliggöra importer av API:er med punktnotation i namet, exempelvis `IndexUtil.IndexType`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/build-app",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"build-app": "./bin/index.js",
|
|
6
6
|
"sv-app-build": "./bin/index.js"
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
"@rollup/plugin-replace": "6.0.1",
|
|
25
25
|
"@rollup/plugin-terser": "0.4.4",
|
|
26
26
|
"archiver": "7.0.1",
|
|
27
|
-
"autoprefixer": "10.4.20",
|
|
28
27
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
29
28
|
"chalk": "5.3.0",
|
|
30
29
|
"find-up": "7.0.0",
|
|
31
30
|
"form-data": "4.0.1",
|
|
32
31
|
"fs-extra": "11.2.0",
|
|
33
32
|
"glob": "^11.0.0",
|
|
34
|
-
"got": "14.4.
|
|
33
|
+
"got": "14.4.4",
|
|
35
34
|
"gzip-size": "7.0.0",
|
|
36
35
|
"lodash-es": "4.17.21",
|
|
37
36
|
"minimist": "^1.2.8",
|
|
38
|
-
"postcss": "8.4.
|
|
37
|
+
"postcss": "8.4.49",
|
|
38
|
+
"postcss-preset-env": "^10.1.1",
|
|
39
39
|
"postcss-pxtorem": "6.1.0",
|
|
40
40
|
"pretty-bytes": "6.1.1",
|
|
41
41
|
"prompts": "2.4.2",
|
|
42
|
-
"rollup": "4.
|
|
42
|
+
"rollup": "4.27.2",
|
|
43
43
|
"rollup-plugin-postcss": "4.0.2",
|
|
44
44
|
"rollup-plugin-string": "3.0.0",
|
|
45
45
|
"rollup-plugin-svelte": "7.2.2",
|
|
46
46
|
"slash": "5.1.0",
|
|
47
47
|
"svelte-preprocess": "6.0.3",
|
|
48
|
-
"@soleil-se/build-
|
|
49
|
-
"@soleil-se/build-
|
|
48
|
+
"@soleil-se/build-config": "1.3.0",
|
|
49
|
+
"@soleil-se/build-utils": "1.7.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"svelte": "5.1.3"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import postcss from 'rollup-plugin-postcss';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import presetEnv from 'postcss-preset-env';
|
|
4
4
|
import pxtorem from 'postcss-pxtorem';
|
|
5
5
|
|
|
6
6
|
import config from '@soleil-se/build-config';
|
|
7
7
|
import preprocessOptions from './common/preprocessOptions.js';
|
|
8
8
|
|
|
9
|
-
const plugins = [
|
|
10
|
-
|
|
9
|
+
const plugins = [presetEnv({
|
|
10
|
+
...config?.css?.plugins?.presetEnv,
|
|
11
|
+
autoprefixer: config?.css?.plugins?.autoprefixer,
|
|
12
|
+
})];
|
|
11
13
|
if (config?.css?.plugins?.pxtorem) {
|
|
12
14
|
plugins.push(pxtorem(config?.css.plugins.pxtorem));
|
|
13
15
|
}
|