@cmmn/tools 1.4.16 → 1.4.17
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/bundle/rollup.config.js +8 -3
- package/package.json +5 -2
package/bundle/rollup.config.js
CHANGED
|
@@ -14,7 +14,9 @@ import html from '@open-wc/rollup-plugin-html';
|
|
|
14
14
|
import json from '@rollup/plugin-json';
|
|
15
15
|
import alias from '@rollup/plugin-alias';
|
|
16
16
|
import replace from '@rollup/plugin-replace';
|
|
17
|
+
import postCSS from "rollup-plugin-postcss"
|
|
17
18
|
|
|
19
|
+
import flexbugs from 'postcss-flexbugs-fixes';
|
|
18
20
|
/**
|
|
19
21
|
* @typedef {import(rollup).RollupOptions} RollupOptions
|
|
20
22
|
* @typedef {import(rollup).OutputOptions} OutputOptions
|
|
@@ -143,17 +145,20 @@ export class ConfigCreator {
|
|
|
143
145
|
]
|
|
144
146
|
}),
|
|
145
147
|
builtins(),
|
|
146
|
-
|
|
148
|
+
this.options.styles === 'modules' ? postCSS({
|
|
147
149
|
mode: [
|
|
148
150
|
"inject",
|
|
149
151
|
{container: "head", prepend: true, attributes: {id: "global"}},
|
|
150
152
|
],
|
|
153
|
+
plugins: [
|
|
154
|
+
flexbugs,
|
|
155
|
+
],
|
|
151
156
|
modules: {
|
|
152
|
-
|
|
157
|
+
root: ''
|
|
153
158
|
},
|
|
154
159
|
namedExports: false,
|
|
155
160
|
autoModules: true,
|
|
156
|
-
}: {
|
|
161
|
+
}) : styles({
|
|
157
162
|
mode: "emit"
|
|
158
163
|
}),
|
|
159
164
|
image({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmmn/tools",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.17",
|
|
4
4
|
"description": "Compilation, bundling, code generator, testing.",
|
|
5
5
|
"main": "dist/rollup.config.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,6 +51,9 @@
|
|
|
51
51
|
"fast-glob": "^3.2.11",
|
|
52
52
|
"jest": "27.x.x",
|
|
53
53
|
"less": "^4",
|
|
54
|
+
"postcss-composes": "^0.1.0",
|
|
55
|
+
"postcss-flexbugs-fixes": "5.x.x",
|
|
56
|
+
"postcss-normalize": "10.x.x",
|
|
54
57
|
"rollup": "^2",
|
|
55
58
|
"rollup-plugin-img": "1.x.x",
|
|
56
59
|
"rollup-plugin-livereload": "^2.0.5",
|
|
@@ -69,5 +72,5 @@
|
|
|
69
72
|
},
|
|
70
73
|
"author": "",
|
|
71
74
|
"license": "ISC",
|
|
72
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5306e035e572997381eddb0ec715af52a1428b74"
|
|
73
76
|
}
|