@seayoo-web/scripts 3.1.0 → 3.1.2
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/dist/index.js +3 -1
- package/package.json +1 -1
- package/types/src/stylelint.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ function definePageBuildConfig(option) {
|
|
|
242
242
|
preset.ignoreVuePlugin ? null : vue(),
|
|
243
243
|
preset.ignorePolyfill ? null : legacy(
|
|
244
244
|
preset.polyfill ?? {
|
|
245
|
-
targets: ["defaults", "> 0.1%", "last 5 versions and not dead"],
|
|
245
|
+
targets: ["defaults", "chrome >= 52", "> 0.1%", "last 5 versions and not dead"],
|
|
246
246
|
// https://github.com/vitejs/vite/blob/main/packages/plugin-legacy/src/index.ts#L170
|
|
247
247
|
// https://unpkg.com/browse/core-js@3.41.0/
|
|
248
248
|
additionalLegacyPolyfills: [
|
|
@@ -383,6 +383,8 @@ const stylelintConfig = {
|
|
|
383
383
|
rules: {
|
|
384
384
|
"selector-class-pattern": /^[a-z\d-_]+$/,
|
|
385
385
|
"media-feature-range-notation": "prefix",
|
|
386
|
+
"color-function-notation": "legacy",
|
|
387
|
+
"alpha-value-notation": "number",
|
|
386
388
|
"selector-pseudo-class-no-unknown": [
|
|
387
389
|
true,
|
|
388
390
|
{
|
package/package.json
CHANGED
package/types/src/stylelint.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare const stylelintConfig: {
|
|
|
10
10
|
rules: {
|
|
11
11
|
"selector-class-pattern": RegExp;
|
|
12
12
|
"media-feature-range-notation": string;
|
|
13
|
+
"color-function-notation": string;
|
|
14
|
+
"alpha-value-notation": string;
|
|
13
15
|
"selector-pseudo-class-no-unknown": (boolean | {
|
|
14
16
|
ignorePseudoClasses: string[];
|
|
15
17
|
})[];
|